-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 878 Bytes
/
codecov.yml
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
36
37
38
name: Running Code Coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
matrix:
node-version: [14.x, 15.x, 16.x, 18.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# Fine-grained PAT with contents:write and workflows:write
# scopes
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}