chore(main): release 0.21.0-alpha #739
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: Coverage | |
on: [push, pull_request] | |
jobs: | |
codecov: | |
name: codecov | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Load .env file | |
uses: cardinalby/export-env-action@v2 | |
with: | |
envFile: .env | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GOLANG_VERSION }} | |
- uses: actions/checkout@v3 | |
- name: Generate coverage report | |
run: | | |
go mod tidy | |
go test -race ./... -coverprofile=coverage.txt -covermode=atomic | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v2 | |
with: | |
file: ./coverage.txt | |
flags: unittests | |
name: codecov-umbrella |