-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
39 lines (35 loc) · 920 Bytes
/
ci-test.yml
File metadata and controls
39 lines (35 loc) · 920 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
36
37
38
39
name: Testing
on:
push:
branches:
- main
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Use Node.js 20.x
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x
- name: Get node modules
run: npm ci
env:
CI: true
- name: build and test
run: npm test
env:
CI: true
- name: report test coverage
if: always() && hashFiles('coverage/coverage-final.json') != ''
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
with:
files: coverage/coverage-final.json
fail_ci_if_error: false