Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 662 Bytes

precommit.fixture.md

File metadata and controls

30 lines (21 loc) · 662 Bytes

Pre-commit checks

Fast checks to run before every commit. This template runs against the bundled examples/sample-app; point the paths at your own code (or add changed: true to scope to what you changed) when you copy it into your project.

gavel fixtures examples/precommit.fixture.md

Runner-step paths are relative to the git root, like gavel test / gavel lint.

Lint

linters: [golangci-lint]
files: [./examples/sample-app]

Test

paths: [./examples/sample-app]
framework: [go]
test-timeout: 2m

Formatting is clean

test -z "$(gofmt -l "$GIT_ROOT_DIR/examples/sample-app")"