-
Notifications
You must be signed in to change notification settings - Fork 358
40 lines (33 loc) · 922 Bytes
/
unit.yml
File metadata and controls
40 lines (33 loc) · 922 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
name: Unit tests
on:
push:
branches: [main]
pull_request:
jobs:
unit_tests:
name: Unit tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- name: Set up steps
uses: ./.github/actions/setup-steps
- name: Unit tests
run: yarn test:unit:coverage
- name: Upload Jest HTML report
if: failure()
uses: actions/upload-artifact@v3
with:
name: jest-unit-tests-report
path: reports/jest-report-unit.html
retention-days: 1
- name: Upload unit tests coverage report
uses: actions/upload-artifact@v3
with:
name: jest-unit-coverage-report
path: test-coverage/unit
retention-days: 1