forked from SiaFoundation/siad
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.32 KB
/
test-multi.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
name: Multi-Platform Test
on:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
with:
version: v1.37.1
- name: analyze
run: |
go get gitlab.com/NebulousLabs/analyze
make analyze
- name: gofmt
run: make fmt
- name: go vet
run: make vet
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ darwin, linux, windows ]
arch: [ arm64, amd64 ]
exclude:
- os: windows
arch: arm64
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ^v1.16
- name: build ${{ matrix.os }}/${{ matrix.arch }}
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make static
test:
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 120
needs: [ lint, build ]
steps:
- uses: actions/checkout@v2
- name: test
uses: n8maninger/action-golang-test@503bdd1b410aa26740cad03f1214abc8beef5496
with:
args: "-race;-failfast;-tags=testing debug netgo"