-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.17 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
name: CI
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
- '.vscode/**'
- 'README.md'
- 'LICENSE'
pull_request:
paths-ignore:
- '.github/**'
- '.vscode/**'
- 'README.md'
- 'LICENSE'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
main:
name: Main Job
uses: ./.github/workflows/nx-cloud-main.yml
secrets: inherit
with:
number-of-agents: 3
python-version: '3.11'
parallel-commands: |
pnpm exec nx-cloud record -- pnpm exec nx format:check
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
pnpm exec nx affected --target=e2e --parallel=3
agents:
name: Agents
uses: ./.github/workflows/nx-cloud-agents.yml
secrets: inherit
with:
number-of-agents: 3
python-version: '3.11'
init-commands: |
python -m pip install --upgrade pip
pip install pdm