Skip to content

Commit 203f1ee

Browse files
author
John Doe
committed
chore: add gh action
1 parent fd8f879 commit 203f1ee

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/agents-ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)