trying to allow workflow_call - also set go to 1.21 and pass descript… #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code Coverage" | |
on: | |
workflow_call: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
check-latest: true | |
- name: Run test coverage | |
run: go test -race -coverprofile=coverage.out -covermode=atomic ./... | |
- uses: codecov/codecov-action@v3 | |
with: | |
files: coverage.out |