-
Notifications
You must be signed in to change notification settings - Fork 475
43 lines (40 loc) · 1.13 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
name: ⚙️ Unit tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
if: ${{ !contains(github.head_ref, 'release/') }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: Unit tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.106.0
- uses: taiga-family/ci/actions/setup/node@v1.106.0
- run: npm test
- uses: codecov/codecov-action@v5.1.2
if: ${{ matrix.os == 'ubuntu-latest' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
directory: ./coverage/
flags: summary
name: units
test-result:
if: ${{ !contains(github.head_ref , 'release/') }}
name: Tests result
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: taiga-family/ci/actions/setup/variables@v1.106.0
- uses: taiga-family/ci/actions/setup/node@v1.106.0
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true