ci(github): add coverage reports via CodeClimate

This commit is contained in:
2021-08-22 22:08:05 +01:00
parent 51e78b6bda
commit a15ed69b35

View File

@@ -63,31 +63,31 @@ jobs:
# github-token: ${{ secrets.GITHUB_TOKEN }} # github-token: ${{ secrets.GITHUB_TOKEN }}
# auto-push: false # auto-push: false
# cov: cov:
# name: Coverage name: Coverage
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v2 - uses: actions/checkout@v2
# - uses: actions/setup-go@v2 - uses: actions/setup-go@v2
# with: with:
# go-version: 1.15 go-version: 1.15
# - uses: actions/cache@v2 - uses: actions/cache@v2
# with: with:
# path: ~/go/pkg/mod path: ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-go- ${{ runner.os }}-go-
# - name: Publish coverage - name: Publish coverage
# uses: paambaati/codeclimate-action@v2.7.4 uses: paambaati/codeclimate-action@v2.7.4
# env: env:
# VERBOSE: "true" VERBOSE: "true"
# GOMAXPROCS: 4 GOMAXPROCS: 4
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# with: with:
# coverageCommand: make cov coverageCommand: make cov
# prefix: github.com/${{ github.repository }} prefix: github.com/${{ github.repository }}
# coverageLocations: | coverageLocations: |
# ${{ github.workspace }}/coverage.out:gocov ${{ github.workspace }}/coverage.out:gocov
test: test:
name: Test name: Test