chore: remove some sections from TOC #100
Workflow file for this run
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
--- | |
name: Build, test and lint | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build-test-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.23.2' | |
- name: Install tools | |
run: | | |
go install github.com/segmentio/[email protected] | |
go install mvdan.cc/[email protected] | |
go install github.com/securego/gosec/v2/cmd/[email protected] | |
go install github.com/mgechev/[email protected] | |
go install github.com/boumenot/[email protected] | |
- name: Build | |
run: make build | |
- name: Lint | |
run: make lint | |
- name: Run tests | |
run: make test | |
- name: Require clean working directory | |
shell: bash | |
run: | | |
if ! git diff --exit-code; then | |
echo "Working tree dirty at end of job" | |
exit 1 | |
fi |