diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edcf22380..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: @@ -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: 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": {