Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/agents-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: agents-ci

on:
push:
branches:
- main
pull_request:

permissions:
actions: read
contents: read

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# This enables task distribution via Nx Cloud
# Run this command as early as possible, before dependencies are installed
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
- run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"

# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --legacy-peer-deps
- uses: nrwl/nx-set-shas@v4

# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
# - run: npx nx-cloud record -- echo Hello World
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
- run: npx nx affected -t lint unit-test build
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"nxCloudId": "65d4d8449e4953a5ed64ff4a",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
Expand Down Expand Up @@ -71,7 +72,7 @@
"!{projectRoot}/code-pushup.config.?(m)[jt]s",
"!{projectRoot}/zod2md.config.ts"
],
"sharedGlobals": []
"sharedGlobals": ["{workspaceRoot}/.github/workflows/agents-ci.yml"]
},
"workspaceLayout": {
"appsDir": "examples",
Expand Down
233 changes: 233 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"lighthouse-logger": "2.0.1",
"multi-progress-bars": "^5.0.3",
"nx": "19.8.13",
"nx-cloud": "^19.1.0",
"parse-lcov": "^1.0.4",
"rimraf": "^6.0.1",
"semver": "^7.6.3",
Expand Down
Loading