Skip to content

Commit

Permalink
Change: Split CI workflow job into testing and coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks authored and timopollmeier committed Aug 31, 2023
1 parent 5294360 commit 8af9e91
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/ci-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,36 @@ jobs:
testing:
env:
REPORT_DIR: reports
name: Testing and upload coverage
name: Run tests
runs-on: 'ubuntu-latest'
strategy:
matrix:
node-version:
- 18
- 20
steps:
- uses: actions/checkout@v3
- name: Set up node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm install
- name: Run JavaScript tests
env:
JEST_JUNIT_OUTPUT_DIR: ${{ env.REPORT_DIR }}
run: npm run test

coverage:
env:
REPORT_DIR: reports
name: Upload coverage
runs-on: 'ubuntu-latest'
strategy:
matrix:
node-version:
- 18
steps:
- uses: actions/checkout@v3
- name: Set up node ${{ matrix.node-version }}
Expand Down

0 comments on commit 8af9e91

Please sign in to comment.