-
Notifications
You must be signed in to change notification settings - Fork 83
41 lines (41 loc) · 920 Bytes
/
go.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
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.18", "1.19"]
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: Lint
run: make lint
generate:
name: Regenerate files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: Regenerate files
run: make generate
- name: Check for a diff
run: git diff --exit-code