Skip to content

Commit

Permalink
chore(repo): diff project graph
Browse files Browse the repository at this point in the history
  • Loading branch information
lourw committed Feb 5, 2025
1 parent de89b6b commit ed2876b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,33 +91,28 @@ jobs:
NX_CLOUD_DTE_SUMMARY: 'true'
NX_CLOUD_NO_TIMEOUTS: 'true'
NX_CLOUD_SKIP_WORKSPACE_DATA_CACHE: 'false'
NX_BRANCH: 'master'
steps:
- checkout
- nx/set-shas:
main-branch-name: 'master'
- run: npx nx-cloud@next start-ci-run --distribute-on="./.nx/workflows/dynamic-changesets.yaml" --stop-agents-after="e2e"
- run: npx nx-cloud start-ci-run --distribute-on="manual" --assignment-rules=".nx/workflows/assignment-rules.yaml" --stop-agents-after="e2e"
- run:
command: |
sudo apt-get update
sudo apt-get install -y ca-certificates lsof libvips-dev libglib2.0-dev libgirepository1.0-dev
- browser-tools/install-chrome
- run-pnpm-install:
os: linux
- run:
name: Cargo dependencies
command: cargo metadata --format-version=1
- run:
name: Print env
command: echo $NX_CACHE_PROJECT_GRAPH
- run:
name: Save workspace cache files
command: cp -r .nx/workspace-data .nx/temp-workspace-data
- run:
name: Project Graph Cold
command: pnpm nx show projects
- run:
name: Diff workspace cache files
command: diff -r .nx/workspace-data .nx/temp-workspace-data
- run:
name: Print Workspace Cache 2
command: ls -lah .nx/workspace-data
- run:
name: Project Graph Warm
command: pnpm nx show projects
Expand Down
30 changes: 30 additions & 0 deletions .nx/workflows/assignment-rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

assignment-rules:
- target: docker-rae
runs-on:
- docker-agent

- project: '*-e2e'
runs-on:
- cypress-agent

- target: e2e-ci
configuration: ci
runs-on:
- general-agent

- target: build
runs-on:
- general-agent

- target: lint
runs-on:
- general-agent

- target: test
runs-on:
- general-agent

- target: component-test
runs-on:
- general-agent

0 comments on commit ed2876b

Please sign in to comment.