Merge pull request #10 from inaciogu/chore/code-climate-badge #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Climate coverage report | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
- name: Install Dependencies | |
run: go get ./... | |
- name: Report Coverage | |
uses: paambaati/codeclimate-action@v3.2.0 | |
with: | |
coverageCommand: go test -coverprofile=c.out ./... | |
debug: true | |
prefix: "" |