update go deps #3
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
# .github/workflows/test.yml | |
name: Go Unit Tests | |
on: | |
push: | |
branches: | |
- feat/unittests | |
pull_request: | |
branches: | |
- feat/unittests | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.23" | |
- name: Install dependencies | |
run: go mod tidy | |
- name: Run tests | |
run: go test -v ./... -coverprofile=coverage.out | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage.out | |
flags: unittests | |
fail_ci_if_error: true | |
- name: Generate coverage badge | |
run: go tool cover -func coverage.out | |