We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2a9ea9 commit 15b0a66Copy full SHA for 15b0a66
.github/workflows/test.yaml
@@ -0,0 +1,36 @@
1
+name: test
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
9
+jobs:
10
+ native-os-build:
11
+ strategy:
12
+ matrix:
13
+ os: [ubuntu-latest, windows-latest, macOS-latest]
14
15
+ runs-on: ${{ matrix.os }}
16
17
+ steps:
18
+ - uses: actions/checkout@v1
19
+ - uses: actions/setup-go@v1
20
+ with:
21
+ go-version: "1.13"
22
+ - name: Build native
23
+ run: GOARCH=amd64 go build -v ./...
24
+ shell: bash
25
+ - name: Run unit tests
26
+ run: go test -v ./...
27
28
+ - name: Cross-build for 386
29
+ if: matrix.os != 'macOS-latest'
30
+ run: GOARCH=386 go build -v ./...
31
32
+ - name: Cross-build for arm
33
34
+ run: GOARCH=arm go build -v ./...
35
36
.travis.yml
0 commit comments