-
Notifications
You must be signed in to change notification settings - Fork 68
46 lines (39 loc) · 880 Bytes
/
tests.yml
File metadata and controls
46 lines (39 loc) · 880 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
40
41
42
43
44
45
46
name: Tests
on:
pull_request:
branches:
- dev
jobs:
lint:
name: Linter
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Lint
run: |
npm install
npm run lint
tests:
name: Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Tests
run: |
npm install
npm test
- name: Archive
uses: actions/upload-artifact@v4
with:
name: test-report
path: |
test-report/test-report.html
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/cobertura-coverage.xml
fail_below_min: true
thresholds: '45 60'
indicators: true