-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (35 loc) · 887 Bytes
/
go.yaml
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
43
44
name: Go
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test Go
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install protoc
uses: arduino/setup-protoc@v2
with:
version: "21.12"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ^1
- name: Install Go tools
run: make tools
- name: Regenerate protos
run: make protos
- name: Vet Go code
run: make vet
- name: Run Go tests
run: make test
- name: Verify repo is unchanged
run: git diff --exit-code HEAD -w -G'(^[^# /])|(^#\w)|(^\s+[^#/])' # Ignore whitespace and comments