feat(ch2): spy master contract and test #1
This file contains 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
# | |
# Run tests for all pushed commits and opened pull requests on Github. | |
# | |
name: CH1 Test | |
on: | |
push: | |
paths: | |
- 'src/CH2SpyMessage.ts' | |
- 'src/CH2SpyMessage.test.ts' | |
pull_request: | |
paths: | |
- 'src/CH2SpyMessage.ts' | |
- 'src/CH2SpyMessage.test.ts' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Set up NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: NPM ci, build, & test | |
run: | | |
npm install | |
npm run build --if-present | |
npm test -t CH2 | |
env: | |
CI: true |