From db6ed54d6244dca51b01ed94bbb7ddf764534b81 Mon Sep 17 00:00:00 2001 From: Michael Hladky Date: Wed, 3 Sep 2025 03:11:18 +0200 Subject: [PATCH 1/3] chore: fix test caching --- nx.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nx.json b/nx.json index 4acf25eda..854a8c736 100644 --- a/nx.json +++ b/nx.json @@ -69,6 +69,7 @@ } }, "unit-test": { + "cache": true, "outputs": [ "{workspaceRoot}/coverage/{projectName}/unit-tests/lcov.info" ], @@ -81,6 +82,7 @@ } }, "int-test": { + "cache": true, "outputs": ["{workspaceRoot}/coverage/{projectName}/int-tests/lcov.info"], "executor": "@nx/vite:test", "options": { From 4fdbc2b6018019bfdf7ce175cdb88a91702498e2 Mon Sep 17 00:00:00 2001 From: Michael Hladky Date: Wed, 3 Sep 2025 03:19:32 +0200 Subject: [PATCH 2/3] chore: remove duplicated args --- .github/workflows/ci.yml | 4 ++-- .github/workflows/code-coverage.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edcf22380..bfcb6dec3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: - name: Install dependencies run: npm ci - name: Unit test affected projects - run: npx nx affected -t unit-test --parallel=3 --coverage.enabled + run: npx nx affected -t unit-test --parallel=3 integration-test: strategy: @@ -97,7 +97,7 @@ jobs: - name: Install dependencies run: npm ci - name: Integration test affected projects - run: npx nx affected -t int-test --parallel=3 --coverage.enabled + run: npx nx affected -t int-test --parallel=3 e2e: strategy: diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index a4a567a16..dcb157422 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -48,7 +48,7 @@ jobs: - name: Install dependencies run: npm ci - name: Execute tests with coverage - run: npx nx run ${{ matrix.project }}:${{ matrix.target }} --coverage.enabled + run: npx nx run ${{ matrix.project }}:${{ matrix.target }} - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4 with: From e9c616285633a471f32db90a980eb8fc0cba1379 Mon Sep 17 00:00:00 2001 From: Michael Hladky Date: Wed, 3 Sep 2025 03:33:16 +0200 Subject: [PATCH 3/3] chore: adjust actions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfcb6dec3..962854194 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - name: Install dependencies run: npm ci - name: Lint affected projects - run: npx nx affected:lint --parallel=3 + run: npx nx affected -t lint --parallel=3 unit-test: strategy: