File tree Expand file tree Collapse file tree 2 files changed +94
-0
lines changed
Expand file tree Collapse file tree 2 files changed +94
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - v3
7+ jobs :
8+ test :
9+ name : test
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : setup
13+ uses : actions/setup-go@v3
14+ with :
15+ go-version : 1.17
16+ - name : checkout
17+ uses : actions/checkout@v3
18+ - name : cache
19+ uses : actions/cache@v3
20+ with :
21+ path : ~/go/pkg/mod
22+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23+ restore-keys : ${{ runner.os }}-go-
24+ - name : deps
25+ run : go get -v -t -d ./...
26+ - name : test
27+ env :
28+ INTEGRATION_TESTS : yes
29+ run : go test -mod readonly -v ./...
30+ lint :
31+ name : lint
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : checkout
35+ uses : actions/checkout@v3
36+ - name : lint
37+ uses : golangci/golangci-lint-action@v8.0.0
38+ continue-on-error : true
39+ with :
40+ # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
41+ version : v1.30
42+ # Optional: working directory, useful for monorepos
43+ # working-directory: somedir
44+ # Optional: golangci-lint command line arguments.
45+ # args: --issues-exit-code=0
46+ # Optional: show only new issues if it's a pull request. The default value is `false`.
47+ # only-new-issues: true
Original file line number Diff line number Diff line change 1+ name : prbuild
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+ - v3
7+ jobs :
8+ test :
9+ name : test
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : setup
13+ uses : actions/setup-go@v3
14+ with :
15+ go-version : 1.17
16+ - name : checkout
17+ uses : actions/checkout@v3
18+ - name : cache
19+ uses : actions/cache@v3
20+ with :
21+ path : ~/go/pkg/mod
22+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23+ restore-keys : ${{ runner.os }}-go-
24+ - name : deps
25+ run : go get -v -t -d ./...
26+ - name : test
27+ env :
28+ INTEGRATION_TESTS : yes
29+ run : go test -mod readonly -v ./...
30+ lint :
31+ name : lint
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : checkout
35+ uses : actions/checkout@v3
36+ - name : lint
37+ uses : golangci/golangci-lint-action@v8.0.0
38+ continue-on-error : true
39+ with :
40+ # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
41+ version : v1.30
42+ # Optional: working directory, useful for monorepos
43+ # working-directory: somedir
44+ # Optional: golangci-lint command line arguments.
45+ # args: --issues-exit-code=0
46+ # Optional: show only new issues if it's a pull request. The default value is `false`.
47+ # only-new-issues: true
You can’t perform that action at this time.
0 commit comments