forked from fsouza/go-dockerclient
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.11 KB
/
main.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
57
58
59
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 4"
jobs:
test:
strategy:
matrix:
go_version:
- 1.14
- 1.15
os:
- macos
- ubuntu
- windows
goarch:
- 386
- amd64
exclude:
- os: macos
goarch: 386
name: test (${{ matrix.os }}/go-${{ matrix.go_version }}/${{ matrix.goarch }})
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/[email protected]
id: go
with:
stable: false
go-version: ${{ matrix.go_version }}
- uses: actions/[email protected]
- run: go mod download
- run: make gotest
env:
GOARCH: ${{ matrix.goarch }}
GOPROXY: off
- run: make integration
if: matrix.os != 'macos' && matrix.goarch == 'amd64'
env:
GOFLAGS: -mod=readonly
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: golangci/[email protected]