Eric Bower
·
2025-05-24
action.yml
1name: Lint and run tests
2
3description: Lints and runs tests on the codebase, used before builds and on every PR
4
5runs:
6 using: composite
7 steps:
8 - name: Set up Go
9 uses: actions/setup-go@v3
10 with:
11 go-version: 1.24
12 - name: Lint the codebase
13 uses: golangci/golangci-lint-action@v8
14 with:
15 version: latest
16 - name: Run tests
17 shell: bash
18 run: |
19 PICO_SECRET="danger" go test -v ./... -cover -race -coverprofile=coverage.out
20 go tool cover -func=coverage.out -o=coverage.out