-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (48 loc) · 1.21 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Continuous Integration
on: [ push ]
jobs:
lint:
strategy:
matrix:
os: [ 'windows-latest' ]
go: [ '1.16' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- run: gofmt -l $(find . -type f -name '*.go') 2>&1
test:
strategy:
matrix:
os: [ 'windows-latest']
go: [ '1.15', '1.16' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- run: go test -covermode=atomic -coverprofile=coverage -v ./...
env:
CGO_ENABLED: 1
build:
strategy:
matrix:
target:
- os: 'windows-latest'
goos: 'windows'
goarch: 'amd64'
go: [ '1.15', '1.16' ]
runs-on: ${{ matrix.target.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- run: go build -v .
env:
GOOS: ${{ matrix.target.goos }}
GOARCH: ${{ matrix.target.goarch }}
CGO_ENABLED: 1