Skip to content

Commit

Permalink
more code coverage github action configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Sep 26, 2024
1 parent 118ae20 commit 1acf189
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,23 @@ jobs:
- name: Build
run: pnpm --filter ${{matrix.workspace}} run build

coverage:
name: Upload Code Coverage
upload-coverage:
name: Upload code coverage
runs-on: ubuntu-latest
if: ${{ always() }}
needs: test
if: ${{ always() }}
steps:
- uses: actions/checkout@v4
- name: Download Coverage Report
uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4
with:
name: coverage-frontend
path: coverage
- run: ls -lh coverage.xml
- name: Upload to CodeClimate
uses: paambaati/codeclimate-action@v6.0.0
- run: ls -lh
- run: ls -lh coverage
- name: Publish code coverage
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: coverage.xml:clover
coverageLocations: |
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov
3 changes: 2 additions & 1 deletion packages/frontend/config/coverage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-env node */

module.exports = {
reporters: ['lcov', 'html'],
//we need to go up two directories to get to the root of the monorepo
reporters: [['lcov', { projectRoot: '../..' }], 'html'],
};

0 comments on commit 1acf189

Please sign in to comment.