Bump codecov/codecov-action from 4.2.0 to 4.3.0 #683
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: main | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Build on ${{ matrix.os }} with Go ${{ matrix.go }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
go: ['1.19'] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Download dependencies | |
run: go mod download | |
- name: Cache modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.OS }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Build | |
run: go build | |
- name: Test | |
run: go test -coverpkg ./... -covermode atomic -coverprofile coverage.txt -tags fuzz -numCases 3000 -numEvents 10 ./... | |
- name: Lint | |
run: go vet ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4.3.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.txt |