fix: ci tests #5
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
name: test | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-node: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["16"] | |
typescript: ["5.0", "4.9"] | |
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm install | |
- run: npm run compile | |
- run: npm install typescript@${{ matrix.typescript }} | |
- run: npm run test | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint and Typecheck | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "18" | |
- run: npm install | |
- run: npm run compile | |
- run: npm run lint | |
- run: npm run typecheck |