Add codeclimate reporting on coverage.

This commit is contained in:
2021-05-09 19:41:27 +01:00
parent 5ef55cc520
commit dc22f7c281
+8
View File
@@ -75,6 +75,14 @@ jobs:
- name: Run unit tests
run: |
make test CI_RUN=${CI}
- name: Codeclimate
uses: paambaati/codeclimate-action@v2.7.5
with:
coverageCommand: go test -race -coverprofile=cover.out -covermode=atomic -v -bench=. ./...
coverageLocations:
"${{github.workspace}}/cover.out:gocov"
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_KEY }}
code_scans:
needs: [ prepare ]