Merge pull request #116 from gympass/PE1-3200/prefix-bucket #164
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: codacy-coverage-reporter | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
env: | |
GO_VERSION: '1.20' | |
jobs: | |
codacy-coverage-reporter: | |
name: Codacy coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go ${{ env.GO_VERSION }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
id: go | |
- name: Test Packages | |
run: make test | |
- name: Run codacy-coverage-reporter | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
run: | | |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r cover.out |