test: fix failing test on node 18 #1142
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: Tests | |
on: | |
push: | |
branches: | |
- next | |
pull_request: | |
branches: | |
- '*' | |
env: | |
CI: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
node-version: [18.x, 20.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: npm i | |
- name: Lint | |
run: npm run lint | |
- name: Run tests | |
run: npm run test:ci | |
- name: Coverage report | |
uses: codecov/codecov-action@v3.1.4 |