.github/workflows/coverage.yml
---name: coverage on: push: branches: [main] jobs: coverage-update: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Go uses: actions/setup-go@v3 with: go-version: 1.18 cache: true - name: Install dependencies run: | go mod vendor - name: Run tests run: | make test - name: Send test coverage to Codacy uses: codacy/codacy-coverage-reporter-action@v1 with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} coverage-reports: coverage.out force-coverage-parser: go