File tree Expand file tree Collapse file tree 3 files changed +39
-57
lines changed Expand file tree Collapse file tree 3 files changed +39
-57
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ push :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ build :
13
+ name : Test on Go ${{ matrix.go-version }} and ${{ matrix.os }}
14
+ runs-on : ${{ matrix.os }}
15
+ strategy :
16
+ max-parallel : 4
17
+ matrix :
18
+ go-version : [1.13.x, 1.12.x]
19
+ os : [ubuntu-latest, windows-latest]
20
+ steps :
21
+ - name : Set up Go ${{ matrix.go-version }}
22
+ uses : actions/setup-go@v1
23
+ with :
24
+ go-version : ${{ matrix.go-version }}
25
+ id : go
26
+
27
+ - name : Check out code into the Go module directory
28
+ uses : actions/checkout@v1
29
+
30
+ - name : Build on ${{ matrix.os }}
31
+ if : matrix.os == 'windows-latest'
32
+ run : go test -race -v ./...
33
+ - name : Build on ${{ matrix.os }}
34
+ if : matrix.os == 'ubuntu-latest'
35
+ run : |
36
+ diff -au <(gofmt -d .) <(printf "")
37
+ go test -race -v ./...
38
+ go vet -asmdecl .
39
+ ./test-architectures.sh
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments