-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (50 loc) · 1.57 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
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
main:
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.11.3
with:
main-branch-name: master
number-of-agents: 3
init-commands: |
pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
parallel-commands-on-agents: |
pnpm exec nx affected --target=lint --parallel=3
pnpm exec nx affected --target=test --parallel=3 --ci --code-coverage
pnpm exec nx affected --target=build --parallel=3
artifacts-path: |
dist
coverage
agents:
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.11.3
with:
number-of-agents: 3
report:
name: Upload Reports
needs: [main]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: nx-main-artifacts
- name: Upload apps coverage
uses: e-square-io/.github/.github/actions/nx-codecov@main
with:
token: ${{ secrets.CODECOV_TOKEN }}
path: coverage/apps
- name: Upload libs coverage
uses: e-square-io/.github/.github/actions/nx-codecov@main
with:
token: ${{ secrets.CODECOV_TOKEN }}
path: coverage/libs