From 56147811a1474443e5dfcdc4df0fdd17415e5f44 Mon Sep 17 00:00:00 2001 From: Michael Hladky <10064416+BioPhoton@users.noreply.github.com> Date: Thu, 21 Aug 2025 20:13:42 +0200 Subject: [PATCH 1/3] feat(nx-cloud): setup nx cloud workspace This commit sets up Nx Cloud for your Nx workspace, enabling distributed caching and the Nx Cloud GitHub integration for fast CI and improved developer experience. You can access your Nx Cloud workspace by going to https://cloud.nx.app/orgs/65d4d8449e4953a5ed64ff4a/workspaces/65d4d862d2adb16a45a4bc7c **Note:** This commit attempts to maintain formatting of the nx.json file, however you may need to correct formatting by running an nx format command and committing the changes. --- nx.json | 45 ++++++++++++--------------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/nx.json b/nx.json index 99e48af53..03fc684af 100644 --- a/nx.json +++ b/nx.json @@ -23,9 +23,7 @@ "options": { "configFile": "{projectRoot}/vitest.unit.config.ts", "passWithNoTests": true, - "coverage": { - "enabled": true - } + "coverage": { "enabled": true } } }, "int-test": { @@ -35,14 +33,10 @@ "options": { "configFile": "{projectRoot}/vitest.int.config.ts", "passWithNoTests": true, - "coverage": { - "enabled": true - } + "coverage": { "enabled": true } } }, - "e2e": { - "dependsOn": ["^build"] - }, + "e2e": { "dependsOn": ["^build"] }, "lint": { "inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"], "executor": "@nx/linter:eslint", @@ -56,16 +50,11 @@ ] } }, - "nxv-pkg-install": { - "parallelism": false - }, + "nxv-pkg-install": { "parallelism": false }, "@nx/vite:test": { "cache": true, "inputs": ["default", "^production"], - "options": { - "passWithNoTests": true, - "watch": false - } + "options": { "passWithNoTests": true, "watch": false } }, "nx-release-publish": { "dependsOn": ["build"], @@ -99,10 +88,7 @@ ], "sharedGlobals": [] }, - "workspaceLayout": { - "appsDir": "examples", - "libsDir": "packages" - }, + "workspaceLayout": { "appsDir": "examples", "libsDir": "packages" }, "generators": {}, "release": { "projects": ["packages/*"], @@ -110,9 +96,7 @@ "changelog": { "automaticFromRef": true, "projectChangelogs": false, - "workspaceChangelog": { - "createRelease": "github" - } + "workspaceChangelog": { "createRelease": "github" } }, "git": { "commit": true, @@ -123,9 +107,7 @@ }, "version": { "conventionalCommits": true, - "generatorOptions": { - "skipLockFileUpdate": true - } + "generatorOptions": { "skipLockFileUpdate": true } }, "releaseTagPattern": "v{version}" }, @@ -136,14 +118,11 @@ "environments": { "environmentsDir": "tmp/e2e", "targetNames": ["e2e"], - "inferredTargets": { - "e2e": "e2e-test" - } + "inferredTargets": { "e2e": "e2e-test" } }, - "packages": { - "filterByTags": ["publishable"] - } + "packages": { "filterByTags": ["publishable"] } } } - ] + ], + "nxCloudId": "65d4d862d2adb16a45a4bc7c" } From 11486b1a3042ffd136dd48d85038ef71f3b6fc87 Mon Sep 17 00:00:00 2001 From: Michael Hladky Date: Fri, 22 Aug 2025 00:09:44 +0200 Subject: [PATCH 2/3] fix: format files --- nx.json | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/nx.json b/nx.json index 03fc684af..2d432eee2 100644 --- a/nx.json +++ b/nx.json @@ -23,7 +23,9 @@ "options": { "configFile": "{projectRoot}/vitest.unit.config.ts", "passWithNoTests": true, - "coverage": { "enabled": true } + "coverage": { + "enabled": true + } } }, "int-test": { @@ -33,10 +35,14 @@ "options": { "configFile": "{projectRoot}/vitest.int.config.ts", "passWithNoTests": true, - "coverage": { "enabled": true } + "coverage": { + "enabled": true + } } }, - "e2e": { "dependsOn": ["^build"] }, + "e2e": { + "dependsOn": ["^build"] + }, "lint": { "inputs": ["default", "{workspaceRoot}/eslint.config.?(c)js"], "executor": "@nx/linter:eslint", @@ -50,11 +56,16 @@ ] } }, - "nxv-pkg-install": { "parallelism": false }, + "nxv-pkg-install": { + "parallelism": false + }, "@nx/vite:test": { "cache": true, "inputs": ["default", "^production"], - "options": { "passWithNoTests": true, "watch": false } + "options": { + "passWithNoTests": true, + "watch": false + } }, "nx-release-publish": { "dependsOn": ["build"], @@ -88,7 +99,10 @@ ], "sharedGlobals": [] }, - "workspaceLayout": { "appsDir": "examples", "libsDir": "packages" }, + "workspaceLayout": { + "appsDir": "examples", + "libsDir": "packages" + }, "generators": {}, "release": { "projects": ["packages/*"], @@ -96,7 +110,9 @@ "changelog": { "automaticFromRef": true, "projectChangelogs": false, - "workspaceChangelog": { "createRelease": "github" } + "workspaceChangelog": { + "createRelease": "github" + } }, "git": { "commit": true, @@ -107,7 +123,9 @@ }, "version": { "conventionalCommits": true, - "generatorOptions": { "skipLockFileUpdate": true } + "generatorOptions": { + "skipLockFileUpdate": true + } }, "releaseTagPattern": "v{version}" }, @@ -118,9 +136,13 @@ "environments": { "environmentsDir": "tmp/e2e", "targetNames": ["e2e"], - "inferredTargets": { "e2e": "e2e-test" } + "inferredTargets": { + "e2e": "e2e-test" + } }, - "packages": { "filterByTags": ["publishable"] } + "packages": { + "filterByTags": ["publishable"] + } } } ], From 124cad21d68ebee8159508a0d5a5c88182b11ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Chalk?= Date: Fri, 22 Aug 2025 08:06:45 +0200 Subject: [PATCH 3/3] ci: add nx cloud access token to github actions --- .github/workflows/ci.yml | 1 + .github/workflows/code-coverage.yml | 3 ++- .github/workflows/code-pushup.yml | 1 + .github/workflows/release.yml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6863fbcb4..edcf22380 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: NX_NON_NATIVE_HASHER: true + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: format: diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 79e9e2ef7..6770ae0e3 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -6,6 +6,7 @@ on: env: NX_NON_NATIVE_HASHER: true + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: coverage: @@ -35,7 +36,7 @@ jobs: - name: Install dependencies run: npm ci - name: Execute all tests and generate coverage reports - run: npx nx run ${{ matrix.lib }}:${{ matrix.scope }}-test --coverage.enabled --skipNxCache + run: npx nx run ${{ matrix.lib }}:${{ matrix.scope }}-test --coverage.enabled - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4 with: diff --git a/.github/workflows/code-pushup.yml b/.github/workflows/code-pushup.yml index cc1351476..aaa929329 100644 --- a/.github/workflows/code-pushup.yml +++ b/.github/workflows/code-pushup.yml @@ -8,6 +8,7 @@ on: env: NX_NON_NATIVE_HASHER: true + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} permissions: pull-requests: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21a05ba7c..99ae11618 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,7 @@ on: env: NX_NON_NATIVE_HASHER: true + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: dry-run-release: