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 ddfc432
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci:test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,30 @@ 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 (upload tests coverage)

needs:
- test

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 +102,30 @@ jobs:
- name: App Tests 🕹️
run: meteor npm run ci:test -- --full-app

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

test-app-coverage-upload:
name: Continuous integration (upload app tests coverage)

needs:
- test-app

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 ddfc432

Please sign in to comment.