Skip to content

update go deps

update go deps #3

Workflow file for this run

# .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