Antonio Mika
·
2025-02-12
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@v3
14 with:
15 version: latest
16 args: -E goimports -E godot --timeout 10m
17 - name: Run tests
18 shell: bash
19 run: |
20 PICO_SECRET="danger" go test -v ./... -cover -race -coverprofile=coverage.out
21 go tool cover -func=coverage.out -o=coverage.out