We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6f40b0 commit e4f3148Copy full SHA for e4f3148
.github/workflows/test.yaml
@@ -0,0 +1,35 @@
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.15"
22
+ - name: Build native
23
+ run: go build -v ./...
24
+ shell: bash
25
+ - name: Run unit tests
26
+ run: go test -v -race ./...
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
0 commit comments