-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (40 loc) · 957 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches:
- master
- "*"
pull_request:
schedule:
- cron: '0 8 * * 6'
jobs:
test:
strategy:
matrix:
go-version: ["1.24.x"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Check style
run: |
gofmt -w -s .
go generate ./...
git diff --exit-code
- name: Go tests
run: go test -v ./...
- name: Go vet
run: go vet ./...
- name: Staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck -f stylish ./ ./cmd/... ./machine/... ./internal/coq
- name: End-to-end CLI tests
run: |
./test/bats/bin/bats ./test/goose.bats