Skip to content

Commit

Permalink
⚙️ config(ci): Split coverage upload of test workflow to separate jobs.
Browse files Browse the repository at this point in the history
Fixes #862.
  • Loading branch information
make-github-pseudonymous-again committed Apr 15, 2024
1 parent 5aecfb7 commit 3573937
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci:test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,24 @@ jobs:
- name: Tests 🔬
run: meteor npm run ci:test

- name: Archive coverage data 💽
uses: actions/upload-artifact@v4
with:
name: test-coverage
path: .coverage
retention-days: 1

test-coverage-upload:
name: Continuous integration (tests coverage)
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Load coverage data 💽
uses: actions/download-artifact@v4
with:
name: test-coverage
path: .coverage

- name: Publish coverage report 📰
uses: codecov/codecov-action@v4
env:
Expand Down Expand Up @@ -78,6 +96,24 @@ jobs:
- name: App Tests 🕹️
run: meteor npm run ci:test -- --full-app

- name: Archive coverage data 💽
uses: actions/upload-artifact@v4
with:
name: test-coverage
path: .coverage
retention-days: 1

test-app-coverage-upload:
name: Continuous integration (app tests coverage)
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Load coverage data 💽
uses: actions/download-artifact@v4
with:
name: test-app-coverage
path: .coverage

- name: Publish coverage report 📰
uses: codecov/codecov-action@v4
env:
Expand Down

0 comments on commit 3573937

Please sign in to comment.