Skip to content

Remove images from tests section in README #6

Remove images from tests section in README

Remove images from tests section in README #6

Workflow file for this run

name: Go CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: go-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.x"
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Upgraded version to support Go 1.25+ syntax parsing
version: v1.64.6
args: --timeout=5m
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.x"
# Relying on setup-go's built-in cache handling is cleaner than actions/cache@v4
cache: true
- name: Install dependencies
run: go mod download
- name: Check formatting
# If running locally, make sure you've executed `gofmt -w .`
run: xargs -r gofmt -d < <(git ls-files '*.go')
# Cleaned up the diff check to ensure it doesn't flag untracked files weirdly
- name: Verify module tidiness
run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: Build
run: go build -v ./...
- name: Test with Coverage
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out