Skip to content

ci/cd: only build rc if code changed #153

ci/cd: only build rc if code changed

ci/cd: only build rc if code changed #153

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