This repository was archived by the owner on Nov 23, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (45 loc) · 1.13 KB
/
nx.yaml
File metadata and controls
48 lines (45 loc) · 1.13 KB
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
on:
push:
branches:
- main
pull_request:
env:
NX_CLOUD_DISTRIBUTED_EXECUTION: true
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- run: yarn install
- run: npx nx-cloud start-ci-run
- run: npx nx affected --target=build --parallel --max-parallel=3
- run: npx nx affected --target=lint --parallel --max-parallel=2
- run: npx nx-cloud stop-all-agents
agents:
runs-on: ubuntu-latest
name: Agent 1
timeout-minutes: 60
strategy:
matrix:
agent: [1, 2, 3]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- run: yarn install
- name: Start Nx Agent ${{ matrix.agent }}
run: npx nx-cloud start-agent