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

Commit ed25519

Browse files
steveluscherpull[bot]
authored andcommitted
Start the test validator at the beginning of a CI run, and keep it up until the end (#2246)
1 parent a62c388 commit ed25519

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/cicd.yml

+9
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
if: steps.cache-test-validator.outputs.cache-hit != 'true'
5656
run: scripts/setup-test-validator.sh
5757

58+
- name: Start Test Validator
59+
id: test-validator
60+
run: |
61+
./scripts/start-shared-test-validator.sh &
62+
echo "TEST_VALIDATOR_PID=$!" >> "$GITHUB_OUTPUT"
63+
5864
- name: Publish NPM
5965
run: |
6066
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
@@ -63,6 +69,9 @@ jobs:
6369
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6470
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6571

72+
- name: Stop Test Validator
73+
run: kill ${{ steps.test-validator.outputs.TEST_VALIDATOR_PID}}
74+
6675
- name: Deploy Github Page
6776
uses: peaceiris/actions-gh-pages@v3
6877
with:

.github/workflows/pull-requests.yml

+9
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,18 @@ jobs:
6666
if: steps.cache-test-validator.outputs.cache-hit != 'true'
6767
run: scripts/setup-test-validator.sh
6868

69+
- name: Start Test Validator
70+
id: test-validator
71+
run: |
72+
./scripts/start-shared-test-validator.sh &
73+
echo "TEST_VALIDATOR_PID=$!" >> "$GITHUB_OUTPUT"
74+
6975
- name: Build & Test
7076
run: pnpm build --concurrency=100%
7177

78+
- name: Stop Test Validator
79+
run: kill ${{ steps.test-validator.outputs.TEST_VALIDATOR_PID}}
80+
7281
- name: Upload Experimental library build artifacts
7382
if: matrix.node == 'current'
7483
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)