File tree Expand file tree Collapse file tree 3 files changed +92
-0
lines changed Expand file tree Collapse file tree 3 files changed +92
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ go :
11
+ name : runner / go
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Check out code into the Go module directory
17
+ uses : actions/checkout@v2
18
+
19
+ - uses : actions/setup-go@v2
20
+ with :
21
+ go-version : ' ^1.13'
22
+
23
+ - uses : actions/cache@v2
24
+ with :
25
+ path : ~/go/pkg/mod
26
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-go-
29
+
30
+ - name : build
31
+ run : go get .
Original file line number Diff line number Diff line change
1
+ name : linter
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ golangci-lint :
11
+ name : runner / golangci-lint
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Check out code into the Go module directory
17
+ uses : actions/checkout@v2
18
+
19
+ - uses : actions/setup-go@v2
20
+ with :
21
+ go-version : ' ^1.13'
22
+
23
+ - name : golangci-lint
24
+ uses : golangci/golangci-lint-action@v2
25
+ with :
26
+ args : " --config=.github/.golangci.yml --timeout=10m"
27
+ skip-go-installation : true
28
+ skip-pkg-cache : true
29
+ skip-build-cache : true
Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ go :
11
+ name : runner / go
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Set up Go ^1.13
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : ' ^1.13'
20
+ id : go
21
+
22
+ - uses : actions/checkout@v2
23
+
24
+ - uses : actions/cache@v2
25
+ with :
26
+ path : ~/go/pkg/mod
27
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28
+ restore-keys : |
29
+ ${{ runner.os }}-go-
30
+
31
+ - name : Run tests
32
+ run : go test -v ./...
You can’t perform that action at this time.
0 commit comments