Skip to content

Commit

Permalink
inline starting local registry
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Nov 9, 2024
1 parent c0b80a1 commit 844e48e
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,6 @@ jobs:
clone_options: "--depth 1 --verbose"
- attach_workspace:
at: .
- run:
name: Starting local registry
working_directory: scripts
command: |
yarn local-registry --open &
until curl -s http://localhost:6001 > /dev/null; do
echo 'Waiting for local registry to be available...'
sleep 2
done
# if there is a base branch AND a PR number in parameters, benchmark packages against those
# this happens when run against a PR
- when:
Expand All @@ -240,7 +231,13 @@ jobs:
- run:
name: Benchmarking packages against base branch
working_directory: scripts
command: yarn bench-packages --base-branch << pipeline.parameters.ghBaseBranch >> --pull-request << pipeline.parameters.ghPrNumber >> --upload
command: |
yarn local-registry --open &
until curl -s http://localhost:6001 > /dev/null; do
echo 'Waiting for local registry to be available...'
sleep 2
done
yarn bench-packages --base-branch << pipeline.parameters.ghBaseBranch >> --pull-request << pipeline.parameters.ghPrNumber >> --upload
# if there is a NOT a base branch OR NOT a PR number in parameters, just upload benchmarks for the branch
# this happens when runned directly on branches, like next or main
- when:
Expand All @@ -252,7 +249,13 @@ jobs:
- run:
name: Uploading package benchmarks for branch
working_directory: scripts
command: yarn bench-packages --upload
command: |
yarn local-registry --open &
until curl -s http://localhost:6001 > /dev/null; do
echo 'Waiting for local registry to be available...'
sleep 2
done
yarn bench-packages --upload
- store_artifacts:
path: bench/packages/results.json
- store_artifacts:
Expand Down

0 comments on commit 844e48e

Please sign in to comment.