-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 833 Bytes
/
codecov.yml
File metadata and controls
35 lines (28 loc) · 833 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: Run tests and upload coverage
on: push
permissions: {}
jobs:
test:
permissions:
contents: read
id-token: write
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Run tests
run: npx vitest run --coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de
with:
token: ${{ secrets.CODECOV_TOKEN }}