-
Notifications
You must be signed in to change notification settings - Fork 89
56 lines (47 loc) · 1.47 KB
/
goqemu.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: go-qemu
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# track upstream Go's currently supported stable versions.
gorelease: ['1.18', '1.19']
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-${{ matrix.gorelease }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-${{ matrix.gorelease }}
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.gorelease }}
- name: build/go-${{ matrix.gorelease }}
run: go build -v ./...
- name: test/go-${{ matrix.gorelease }}
run: go test -v ./...
# disabled for now, seeing as it is complaining about things that seem like
# non-issues and that are helpful.
#
# I.e., it dislikes assert helpers:
#
# qmp/socket_test.go:238:4: call to (*T).Fatalf from a non-test goroutine
# - name: vet
# run: go vet ./...
# disabled for now, is incompatible with anything that doesn't have 2016 as
# the year. Might need fixing if we want to keep this.
#
# - name: check license
# run: ./scripts/licensecheck.sh
- name: check code generation
run: |
go install golang.org/x/tools/cmd/stringer@latest
./scripts/codegeneration.sh
- name: golint
run: |
go install golang.org/x/lint/golint@latest
./scripts/golint.sh