CI runner has no Go: checks.install fetches Go 1.22.12 (sha256-verified) into .tools/go; lint/test/build use it. gofmt runs over module package dirs so it skips the toolchain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
522 B
JSON
13 lines
522 B
JSON
{
|
|
"slug": "test-some-app",
|
|
"key": "TSA",
|
|
"name": "test some app",
|
|
"peppaUrl": "https://peppa.telecom.quest",
|
|
"checks": {
|
|
"install": "bash scripts/install-go.sh && export PATH=\"$PWD/.tools/go/bin:$PATH\" && go mod download",
|
|
"lint": "export PATH=\"$PWD/.tools/go/bin:$PATH\"; go vet ./... && test -z \"$(gofmt -l $(go list -f {{.Dir}} ./...))\"",
|
|
"test": "export PATH=\"$PWD/.tools/go/bin:$PATH\"; go test ./...",
|
|
"build": "export PATH=\"$PWD/.tools/go/bin:$PATH\"; go build -o bin/ ./..."
|
|
}
|
|
}
|