Merge pull request #130 from gympass/feat/response-policy #176
This file contains hidden or 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 |