-
Notifications
You must be signed in to change notification settings - Fork 131
43 lines (41 loc) · 999 Bytes
/
ci.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
39
40
41
42
43
---
name: Linting / Unit Tests
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- name: Install Dependencies with NPM
id: installation
run: |
npm ci --no-optional
- name: Run Tests
id: testing
run: |
npm run lint
npm run test:ci
- name: Add Coverage Report
if: github.event_name == 'pull_request'
id: coverage-report
uses: 5monkeys/cobertura-action@v13
continue-on-error: true
with:
path: coverage/cobertura-coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 40
- name: Upload Artifacts
id: upload-artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: coverage