tests: update tests to reflect latest node updates #362
Workflow file for this run
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: Run Tests | |
on: | |
pull_request: | |
types: [labeled, opened, synchronize, reopened] | |
push: | |
branches: [main, release-please--branches--main] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [v18, v20, v22] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- run: yarn install --ignore-engines | |
- run: yarn lint | |
- run: yarn test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
flags: ${{ matrix.node }} | |
token: ${{ secrets.CODECOV_TOKEN }} |