Setup cc-test-reporter
binary to use with your GitHub Actions workflows.
This action uses itself to run its test suite.
- uses: amancevice/setup-code-climate@v2
with:
cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}
- run: cc-test-reporter before-build
# ...
- run: cc-test-reporter after-build
You may wish to disable the after-build
step if your workflow is configured to trigger on pull_request
events.
Your GitHub secrets will not be available to users submitting pull requests from outside your organization and the command will surely fail.
- run: cc-test-reporter after-build
if: ${{ github.event_name != 'pull_request' }}