Run test script #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run test script | |
on: | |
workflow_dispatch: # Allows manual triggering via GitHub Actions UI | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org/" | |
- name: Install dependencies | |
run: npm ci | |
- name: Run test script | |
# first run will spawn a new validator process | |
# second run will reuse existing validator process | |
run: npm test && npm test |