Skip to content

Don't add a new empty indirect section #14

Don't add a new empty indirect section

Don't add a new empty indirect section #14

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.24", "1.25"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Download dependencies
run: go get ./...
- name: Run tests
run: go test ./... -v
- name: Build
run: go build ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Run go vet
run: go vet ./...
- name: Run go fmt
run: |
fmt_output=$(go fmt ./...)
if [ -n "$fmt_output" ]; then
echo "The following files need formatting:"
echo "$fmt_output"
exit 1
fi