⚙️ Set up your GitHub Actions workflow with Code Climate test reporter.
name: test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Code Climate
uses: remarkablemark/setup-codeclimate@v2
- name: Run Test and Upload Coverage
run: |
cc-test-reporter before-build
# insert your test command here
cc-test-reporter after-build --exit-code $?
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
See action.yml
Basic:
- uses: remarkablemark/setup-codeclimate@v2
Example:
- uses: remarkablemark/setup-codeclimate@v2
- run: |
cc-test-reporter before-build
npm test
cc-test-reporter after-build --exit-code $?
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Optional: The Code Climate test reporter version. Defaults to latest
:
- uses: remarkablemark/setup-codeclimate@v2
with:
codeclimate-version: 0.11.1
Optional: The Code Climate test reporter CLI name. Defaults to cc-test-reporter
:
- uses: remarkablemark/setup-codeclimate@v2
with:
cli-name: cc-test-reporter
👋 Contributions are welcome!