forked from haoqunjiang/friendly-errors-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 783 Bytes
/
test.yml
File metadata and controls
35 lines (32 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: test
on:
pull_request:
push:
branches: [master]
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['18', '20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run build
- run: npm test -- --coverage
- name: Upload coverage to Codecov
if: matrix.node == '22'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false