blob: 9c1190414760a96b5b1b1d43621f06d9da4ac271 (
plain)
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
|
name: CI
on:
pull_request:
push:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Install tooling
run: |
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
go install github.com/magefile/mage@v1.15.0
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Gate vet
run: mage vet
- name: Gate lint
run: mage lint
- name: Gate tests
run: mage test
|