Open rossPatton opened 2 years ago
@rossPatton Were you able to find a solution for this problem?
It's been awhile since I've thought about this (and sorry for the slow response, I was on extended leave) but I believe we were able to get something rudimentary working, but not with codeclimate unfortunately
name: Tests & Coverage Report
on: pull_request
jobs:
coverage_client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.17.0
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Coverage
run: (cd client/ && npm run coverage)
- name: Report code coverage
# if: steps.wait-for-tests.outputs.conclusion == 'success'
uses: zgosalvez/github-actions-report-lcov@v1.4.0
with:
coverage-files: client/coverage/lcov.info
minimum-coverage: 70
artifact-name: client-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: client
I am trying to set up coverage integration with github actions
I am using the recommended github action,
paambaati/codeclimate-action@v3.0.0
I get an error that doesn't really help, ie, it's unclear what I need to do in order to fix
Here's my github workflow:
The lcov files do exist, and the jest tests run and pass fine.
Here's the debug log from the
cc-test-reporter
: