use correct version of setup node action #9
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
on: [push] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Run eslint | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: yarn | |
- run: yarn lint | |
- run: yarn format --check | |
tsc: | |
runs-on: ubuntu-latest | |
name: Check typescript | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: yarn | |
- run: yarn tsc | |
test: | |
runs-on: ubuntu-latest | |
name: Run tests | |
needs: [lint, tsc] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: yarn | |
- run: yarn test |