Skip to content

Upload Coverage to Code Climate

Actions
Uploads coverage info to Code Climate
v0.0.4
Latest
Star (0)

Maintainability Test Coverage

Code Climate

Uploads code coverage information to Code Climate.

About

This action interacts with Code Climate reporter and allows you to upload your code coverage reports seamlessly.

Usage

name: Test
on: [push, pull_request]
jobs:
  run-tests:
    runs-on: ubuntu-latest
    steps:
      - name: before_build
        uses: caffco/[email protected]
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
        with:
          run_before_build: 'true'
      - name: Run tests
        run: yarn test --coverage
      - name: collect_coverage
        uses: caffco/[email protected]
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
        with:
          collect_coverage: 'true'
          coverage_file_patterns: |
            **/*.lcov:lcov
      - name: after_build
        uses: caffco/[email protected]
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
        with:
          run_after_build: 'true'

Upload Coverage to Code Climate is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Uploads coverage info to Code Climate
v0.0.4
Latest

Upload Coverage to Code Climate is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.