Skip to content

Commit

Permalink
Start the test validator at the beginning of a CI run, and keep it up…
Browse files Browse the repository at this point in the history
… until the end (#2246)
  • Loading branch information
steveluscher authored and pull[bot] committed Oct 22, 2024
1 parent a62c388 commit ed25519
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
if: steps.cache-test-validator.outputs.cache-hit != 'true'
run: scripts/setup-test-validator.sh

- name: Start Test Validator
id: test-validator
run: |
./scripts/start-shared-test-validator.sh &
echo "TEST_VALIDATOR_PID=$!" >> "$GITHUB_OUTPUT"
- name: Publish NPM
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
Expand All @@ -63,6 +69,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Stop Test Validator
run: kill ${{ steps.test-validator.outputs.TEST_VALIDATOR_PID}}

- name: Deploy Github Page
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,18 @@ jobs:
if: steps.cache-test-validator.outputs.cache-hit != 'true'
run: scripts/setup-test-validator.sh

- name: Start Test Validator
id: test-validator
run: |
./scripts/start-shared-test-validator.sh &
echo "TEST_VALIDATOR_PID=$!" >> "$GITHUB_OUTPUT"
- name: Build & Test
run: pnpm build --concurrency=100%

- name: Stop Test Validator
run: kill ${{ steps.test-validator.outputs.TEST_VALIDATOR_PID}}

- name: Upload Experimental library build artifacts
if: matrix.node == 'current'
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ed25519

Please sign in to comment.