Skip to content
Merged
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
39 changes: 0 additions & 39 deletions .github/actions/download-and-publish-test-coverage/action.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/actions/run-and-save-test-coverage/action.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/tests-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,3 @@ jobs:
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Run and save test coverage
uses: ./.github/actions/run-and-save-test-coverage
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '24.1.0' }}
with:
branch-name: ${{ github.ref_name }}
71 changes: 0 additions & 71 deletions .github/workflows/tests-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,77 +215,6 @@ jobs:
if: needs.unit-tests.result != 'success'
run: exit 1

test-coverage-shard:
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
name: "Test Coverage (shard ${{ matrix.shard }})"
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
shard: ['1/2', '2/2']
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }}
ref: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }}
fetch-depth: 1
- name: Setup deps
uses: ./.github/actions/setup-cli-deps
with:
node-version: ${{ env.DEFAULT_NODE_VERSION }}
- name: Unit tests with coverage (shard)
run: pnpm vitest run --coverage --coverage.all=false --reporter=blob --outputFile=vitest-blob-reports/blob-${{ matrix.shard == '1/2' && '1' || '2' }}.json --shard ${{ matrix.shard }}
env:
VITEST_MIN_THREADS: "1"
VITEST_MAX_THREADS: "4"
- uses: actions/upload-artifact@v4
with:
name: coverage-blob-${{ matrix.shard == '1/2' && '1' || '2' }}
path: vitest-blob-reports/
retention-days: 1

test-coverage-merge:
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
needs: test-coverage-shard
name: 'Test Coverage'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }}
ref: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }}
fetch-depth: 1
- name: Setup deps
uses: ./.github/actions/setup-cli-deps
with:
node-version: ${{ env.DEFAULT_NODE_VERSION }}
- uses: actions/download-artifact@v4
with:
pattern: coverage-blob-*
path: vitest-blob-reports
merge-multiple: true
- name: Merge coverage reports
run: pnpm vitest --mergeReports vitest-blob-reports --reporter=json --outputFile=./coverage/report.json --coverage --coverage.all=false
- name: Convert coverage to Jest
run: ./bin/save-coverage-file.js
- name: Take copy of report as new baseline for branch
run: cp ./report.json ./baseline-report.json
- name: Clean ref name
env:
SAFE_REF_NAME: "${{ github.head_ref }}"
run: |
SAFE_REF_NAME="${SAFE_REF_NAME//[\/.]/}"
echo "SAFE_REF_NAME=${SAFE_REF_NAME}" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ env.SAFE_REF_NAME }}--coverage-report
path: ./baseline-report.json
- name: Download and publish test coverage
uses: ./.github/actions/download-and-publish-test-coverage
with:
base-branch-name: '${{ github.base_ref }}'

e2e-tests:
name: 'E2E tests'
if: github.event.pull_request.head.repo.full_name == github.repository
Expand Down
29 changes: 0 additions & 29 deletions bin/save-coverage-file.js

This file was deleted.

Loading