-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (40 loc) · 1.08 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
name: CI Test
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Scan repo for find local actions
uses: actions/checkout@v4
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Run build artifacts dependent
run: | # todo fix later
npx nx build cdk
npx nx build ngxs
npx nx build jest
npx nx build eslint-plugin-enterprise
- name: Run unit tests
run: npx nx run-many --target=test --all --parallel=1 --collect-coverage
- uses: codecov/codecov-action@v3
with:
directory: ./coverage/cdk/
flags: summary,cdk
name: cdk
- uses: codecov/codecov-action@v3
with:
directory: ./coverage/ngxs/
flags: summary,ngxs
name: ngxs
- uses: codecov/codecov-action@v3
with:
directory: ./coverage/jest/
flags: summary,jest
name: jest
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true