Skip to content

Commit

Permalink
Use codecov to track code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Oct 3, 2024
1 parent adc4e31 commit 9d7d49d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
mruby-version:
- 3.2.0
- 3.3.0
platform: [ubuntu-latest, macos-13]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
Expand All @@ -39,13 +39,9 @@ jobs:
uses: elct9620/setup-mruby@main
with:
mruby-version: ${{ matrix.mruby-version }}
- name: Run Test with CodeClimate
uses: paambaati/codeclimate-action@v9
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: Run tests
run: go test -coverprofile=coverage.txt ./...
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
coverageCommand: go test -v -coverprofile coverage.out ./...
prefix: github.com/${{ github.event.repository.full_name }}
coverageLocations:
"${{github.workspace}}/coverage.out:gocov"

token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 9d7d49d

Please sign in to comment.