gha: e2e #45
Workflow file for this run
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: Unit Tests and Coverage | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test_and_coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go 1.19 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.19 | |
- name: Test | |
run: go test -coverprofile=coverage.txt -covermode=atomic -v ./... | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |