feat: Migrate to modern dependencies for v13 #693
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: Test | |
"on": | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
test_matrix: | |
strategy: | |
matrix: | |
node-version: | |
- 18 | |
- 20 | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- run: npm ci | |
- run: npm run build | |
- run: node --experimental-vm-modules node_modules/.bin/jest | |
test: | |
runs-on: ubuntu-latest | |
needs: test_matrix | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version: lts/* | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
- run: node --experimental-vm-modules node_modules/.bin/jest | |
- name: codecov | |
run: npx codecov | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |