-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (41 loc) · 1.03 KB
/
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
44
45
name: 'CI'
on:
pull_request:
paths-ignore: ['**.md']
push:
paths-ignore: ['**.md']
branches:
- main
workflow_dispatch:
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm run lint
- run: npm test
- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: __tests__/__results__/*.xml
- name: Create test report
uses: ./
if: success() || failure()
with:
name: JEST Tests
path: __tests__/__results__/*.xml
reporter: jest-junit
- name: Create mochawesome report
uses: ./
if: success() || failure()
with:
name: Mochawesome Tests
path: __tests__/fixtures/mochawesome-json.json
reporter: mochawesome-json
fail-on-error: false