Skip to content

Merge pull request #79 from spejder/dependabot/github_actions/codecov… #181

Merge pull request #79 from spejder/dependabot/github_actions/codecov…

Merge pull request #79 from spejder/dependabot/github_actions/codecov… #181

Workflow file for this run

---
name: Build and test
on:
- push
permissions:
contents: read
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: WillAbides/[email protected]
with:
go-version-file: go.mod
ignore-local: true
- run: go version
- name: go test
env:
# We enable cgo to be able to test with `-race`.
CGO_ENABLED: 1
run: >-
go test -v -race -cover -covermode=atomic -coverprofile=coverage.txt ./...
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5