chore: Fix CI workflow to use Node 20 (#71) #266
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
strategy: | |
matrix: | |
node: | |
- 20.x | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Run linter | |
run: | | |
yarn lint | |
- name: Run tests | |
env: | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
GR4VY_ID: ${{ secrets.GR4VY_ID }} | |
run: | | |
yarn test |