Skip to content

added logic for creating client with params (#69) #159

added logic for creating client with params (#69)

added logic for creating client with params (#69) #159

name: Coverage Report
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
TestAndReport:
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v2.1.3
with:
go-version: 1.16
- 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