File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : agents-ci
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ permissions :
10+ actions : read
11+ contents : read
12+
13+ jobs :
14+ main :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+
21+ # This enables task distribution via Nx Cloud
22+ # Run this command as early as possible, before dependencies are installed
23+ # Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
24+ - run : npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"
25+
26+ # Cache node_modules
27+ - uses : actions/setup-node@v4
28+ with :
29+ node-version : 20
30+ cache : ' npm'
31+
32+ - run : npm ci --legacy-peer-deps
33+ - uses : nrwl/nx-set-shas@v4
34+
35+ # Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
36+ # - run: npx nx-cloud record -- echo Hello World
37+ # Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
38+ - run : npx nx affected -t lint unit-test build
You can’t perform that action at this time.
0 commit comments