Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 19 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 0 additions & 5 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 0 additions & 15 deletions dev-packages/rollup-utils/plugins/npmPlugins.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Loading