Skip to content

chore: upgrade dep downloader #162

chore: upgrade dep downloader

chore: upgrade dep downloader #162

name: Coverage Report
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
TestAndReport:
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.23
uses: actions/setup-go@v2.1.3
with:
go-version: 1.23
- uses: actions/checkout@v2.3.4
- name: Test
run: |
go test ./... -coverprofile coverage.out
- name: Report
if: ${{ github.ref == 'refs/heads/main' }}
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.out --force-coverage-parser go