diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c26bded3ddf..e59854337b1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -175,9 +175,6 @@ jobs: 'nx-never-restore'}} - name: Build packages - # Set the CODECOV_TOKEN for Bundle Analysis - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: yarn build - name: Upload build artifacts @@ -432,17 +429,9 @@ jobs: if: github.event_name != 'pull_request' - name: Compute test coverage - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload test results to Codecov - if: cancelled() == false - continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: - files: packages/**/*.junit.xml - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} job_bun_unit_tests: name: Bun Unit Tests @@ -539,17 +528,9 @@ jobs: NODE_VERSION: ${{ matrix.node }} - name: Compute test coverage - uses: codecov/codecov-action@v5 + uses: getsentry/codecov-action@main with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload test results to Codecov - if: cancelled() == false - continue-on-error: true - uses: codecov/test-results-action@v1 - with: - files: packages/**/*.junit.xml - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} job_browser_playwright_tests: name: @@ -641,13 +622,13 @@ jobs: overwrite: true retention-days: 7 - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: + token: ${{ secrets.GITHUB_TOKEN }} directory: dev-packages/browser-integration-tests - token: ${{ secrets.CODECOV_TOKEN }} job_browser_loader_tests: name: PW ${{ matrix.bundle }} Tests @@ -702,13 +683,13 @@ jobs: overwrite: true retention-days: 7 - - name: Upload test results to Codecov + - name: Compute test coverage + uses: getsentry/codecov-action@main if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 with: + token: ${{ secrets.GITHUB_TOKEN }} directory: dev-packages/browser-integration-tests - token: ${{ secrets.CODECOV_TOKEN }} job_check_for_faulty_dts: name: Check for faulty .d.ts files @@ -776,13 +757,13 @@ jobs: working-directory: dev-packages/node-integration-tests run: yarn test - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: + token: ${{ secrets.GITHUB_TOKEN }} directory: dev-packages/node-integration-tests - token: ${{ secrets.CODECOV_TOKEN }} job_cloudflare_integration_tests: name: Cloudflare Integration Tests @@ -843,13 +824,13 @@ jobs: cd packages/remix yarn test:integration:ci - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: directory: packages/remix - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} job_e2e_prepare: name: Prepare E2E tests @@ -1034,13 +1015,13 @@ jobs: retention-days: 7 if-no-files-found: ignore - - name: Upload test results to Codecov + - name: Compute test coverage if: cancelled() == false continue-on-error: true - uses: codecov/test-results-action@v1 + uses: getsentry/codecov-action@main with: directory: dev-packages/e2e-tests - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} # - We skip optional tests on release branches job_optional_e2e_tests: diff --git a/codecov.yml b/codecov.yml index f8c0cbc17ba5..fcc0885b060b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -3,11 +3,6 @@ codecov: notify: require_ci_to_pass: no -ai_pr_review: - enabled: true - method: 'label' - label_name: 'ci-codecov-ai-review' - coverage: precision: 2 round: down diff --git a/dev-packages/rollup-utils/plugins/npmPlugins.mjs b/dev-packages/rollup-utils/plugins/npmPlugins.mjs index 7f08873f1c80..3cb9ca7d50f9 100644 --- a/dev-packages/rollup-utils/plugins/npmPlugins.mjs +++ b/dev-packages/rollup-utils/plugins/npmPlugins.mjs @@ -167,18 +167,3 @@ export function makeRrwebBuildPlugin({ excludeShadowDom, excludeIframe } = {}) { values, }); } - -/** - * Plugin that uploads bundle analysis to codecov. - * - * @param type The type of bundle being uploaded. - * @param prefix The prefix for the codecov bundle name. Defaults to 'npm'. - */ -export function makeCodeCovPlugin() { - const packageJson = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), './package.json'), { encoding: 'utf8' })); - return codecovRollupPlugin({ - enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined, - bundleName: packageJson.name, - uploadToken: process.env.CODECOV_TOKEN, - }); -}