Skip to content

Improve CI/CD: add caching, smaller binaries, go mod tidy check #3

Improve CI/CD: add caching, smaller binaries, go mod tidy check

Improve CI/CD: add caching, smaller binaries, go mod tidy check #3

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Check go mod tidy
run: go mod tidy && git diff --exit-code go.mod go.sum
- name: Run tests
run: go test ./...