Skip to content

Commit

Permalink
add coverage step to pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalcaliskan committed Jan 8, 2022
1 parent 27d4ba3 commit 9521d81
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Coverage Test
run: sudo go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Coverage Upload
run: bash <(curl -s https://codecov.io/bash)

sonarcloud:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 9521d81

Please sign in to comment.