Skip to content

Merge pull request #108 from gympass/dependabot/go_modules/golang.org… #147

Merge pull request #108 from gympass/dependabot/go_modules/golang.org…

Merge pull request #108 from gympass/dependabot/go_modules/golang.org… #147

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