.gitbay/ci.yml

26 lines · 970 bytes

 1# gitbay CI. One build per push per job; each step runs with `sh -c` and the
 2# job stops at the first failure. The image is the runner's default, named
 3# here so a bump is a deliberate change.
 4jobs:
 5  build:
 6    image: localhost/gitbay-ci:2
 7    steps:
 8      - go build ./...
 9      - go vet ./...
10  test:
11    image: localhost/gitbay-ci:2
12    steps:
13      - go test ./... -count=1 -race -timeout 10m
14  # Pinned, and run through `go run` so the image needs no linter of its own.
15  # The first run on a runner compiles it; later runs hit the module cache.
16  lint:
17    image: localhost/gitbay-ci:2
18    steps:
19      - go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2 run ./...
20  # Daily check that every listed instance answers, so INSTANCES.md does not
21  # keep dead links. `build trigger krz/skunky-art instances` runs it now.
22  instances:
23    image: localhost/gitbay-ci:2
24    schedule: "0 6 * * *"
25    steps:
26      - python3 scripts/check-instances.py