Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 103cf9e

Browse files
committed
Only benchmark needs a workspace node_modules folder
1 parent fe25ee0 commit 103cf9e

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.circleci/config.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
steps:
3939
- checkout:
4040
<<: *post_checkout
41+
4142
# Enforce that BUILD files are formatted. Note that this uses the version of buildifier
4243
# from the docker image above - take care that you use the same version when you run
4344
# buildifier locally on your change.
@@ -50,9 +51,6 @@ jobs:
5051
- checkout:
5152
<<: *post_checkout
5253

53-
- restore_cache:
54-
key: *cache_key
55-
5654
- run: sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
5755

5856
# Helpful for debugging, so you can check you have the same bazel version when you need
@@ -62,9 +60,6 @@ jobs:
6260
# Build and Test
6361
- run: bazel test //...
6462

65-
# Run the benchmark
66-
- run: node_modules/.bin/ibazel-benchmark-runner //src:devserver src/hello-world/hello-world.component.ts --url=http://localhost:5432
67-
6863
- store_artifacts:
6964
path: dist/bin/src/bundle.min.js
7065
destination: bundle.min.js
@@ -73,6 +68,19 @@ jobs:
7368
path: dist/bin/src/bundle.cs.min
7469
destination: bundle.cs.min
7570

71+
benchmark:
72+
<<: *job_defaults
73+
steps:
74+
- checkout:
75+
<<: *post_checkout
76+
77+
- restore_cache:
78+
key: *cache_key
79+
80+
# Run the benchmark
81+
- run: yarn
82+
- run: node_modules/.bin/ibazel-benchmark-runner //src:devserver src/hello-world/hello-world.component.ts --url=http://localhost:5432
83+
7684
# If we get this far, save the node_modules directory for use next time.
7785
- save_cache:
7886
key: *cache_key
@@ -85,3 +93,4 @@ workflows:
8593
jobs:
8694
- lint
8795
- build
96+
- benchmark

0 commit comments

Comments
 (0)