-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (45 loc) · 1.39 KB
/
test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: '🔸 Run tests 🧪'
on:
workflow_call:
jobs:
test:
name: 'Run unit tests'
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: ['18', 'current']
steps:
- uses: actions/checkout@v4
- uses: myparcelnl/actions/yarn-install@v4
if: matrix.node-version == 'current'
- uses: myparcelnl/actions/yarn-install@v4
if: matrix.node-version != 'current'
with:
node-version: ${{ matrix.node-version }}
- uses: ./.github/actions/build
- uses: myparcelnl/actions/nx-run-many@v4
with:
target: 'test:coverage'
parallel: '1'
cloud: 'true'
runner: 'cloud'
- uses: myparcelnl/actions/collect-test-results@v4
- uses: myparcelnl/actions/codecov-coverage@v4
if: matrix.node-version == 'current'
with:
files: coverage/*.xml
token: ${{ secrets.CODECOV_TOKEN }}
- uses: myparcelnl/actions/codecov-test-results@v4
if: matrix.node-version == 'current'
with:
files: junit/*.xml
token: ${{ secrets.CODECOV_TOKEN }}
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: myparcelnl/actions/yarn-install@v4
- uses: ./.github/actions/build
- uses: myparcelnl/actions/bundlewatch@v4
with:
token: ${{ secrets.BUNDLEWATCH_TOKEN }}