File tree Expand file tree Collapse file tree 3 files changed +59
-59
lines changed
Expand file tree Collapse file tree 3 files changed +59
-59
lines changed Original file line number Diff line number Diff line change 44 pull_request :
55 types : [opened, reopened, synchronize]
66 branches :
7- - master
8- - v3
9- - v4
7+ - master
8+ - v3
9+ - v4
1010
1111jobs :
1212 lint :
1313 runs-on : ubuntu-latest
1414 steps :
15- - name : checkout code
16- uses : actions/checkout@v4
17- with :
18- filter : ' blob:none'
19- - name : setup go
20- uses : actions/setup-go@v5
21- with :
22- cache-dependency-path : " **/*.sum"
23- go-version : ' stable'
24- - name : setup deps
25- run : go get -v ./...
26- - name : run lint
27- uses : https://github.com/ golangci/golangci-lint-action@v6
28- with :
29- version : ' latest'
15+ - name : checkout code
16+ uses : actions/checkout@v4
17+ with :
18+ filter : ' blob:none'
19+ - name : setup go
20+ uses : actions/setup-go@v5
21+ with :
22+ cache-dependency-path : " **/*.sum"
23+ go-version : ' stable'
24+ - name : setup deps
25+ run : go get -v ./...
26+ - name : run lint
27+ uses : golangci/golangci-lint-action@v6
28+ with :
29+ version : ' latest'
Original file line number Diff line number Diff line change 44 pull_request :
55 types : [opened, reopened, synchronize]
66 branches :
7- - master
8- - v3
9- - v4
7+ - master
8+ - v3
9+ - v4
1010 push :
1111 branches :
12- - master
13- - v3
14- - v4
12+ - master
13+ - v3
14+ - v4
1515
1616jobs :
1717 test :
1818 runs-on : ubuntu-latest
1919 steps :
20- - name : checkout code
21- uses : actions/checkout@v4
22- with :
23- filter : ' blob:none'
24- - name : checkout tests
25- uses : actions/checkout@v4
26- with :
27- ref : master
28- filter : ' blob:none'
29- repository : unistack-org/micro-tests
30- path : micro-tests
31- - name : setup go
32- uses : actions/setup-go@v5
33- with :
34- cache-dependency-path : " **/*.sum"
35- go-version : ' stable'
36- - name : setup go work
37- env :
38- GOWORK : /workspace/ ${{ github.repository_owner }}/go.work
39- run : |
40- go work init
41- go work use .
42- go work use micro-tests
43- - name : setup deps
44- env :
45- GOWORK : /workspace/ ${{ github.repository_owner }}/go.work
46- run : go get -v ./...
47- - name : run tests
48- env :
49- INTEGRATION_TESTS : yes
50- GOWORK : /workspace/ ${{ github.repository_owner }}/go.work
51- run : |
52- cd micro-tests
53- go test -mod readonly -v ./... || true
20+ - name : checkout code
21+ uses : actions/checkout@v4
22+ with :
23+ filter : ' blob:none'
24+ - name : checkout tests
25+ uses : actions/checkout@v4
26+ with :
27+ ref : master
28+ filter : ' blob:none'
29+ repository : unistack-org/micro-tests
30+ path : micro-tests
31+ - name : setup go
32+ uses : actions/setup-go@v5
33+ with :
34+ cache-dependency-path : " **/*.sum"
35+ go-version : ' stable'
36+ - name : setup go work
37+ env :
38+ GOWORK : ${{ github.workspace }}/go.work
39+ run : |
40+ go work init
41+ go work use .
42+ go work use micro-tests
43+ - name : setup deps
44+ env :
45+ GOWORK : ${{ github.workspace }}/go.work
46+ run : go get -v ./...
47+ - name : run tests
48+ env :
49+ INTEGRATION_TESTS : yes
50+ GOWORK : ${{ github.workspace }}/go.work
51+ run : |
52+ cd micro-tests
53+ go test -mod readonly -v ./... || true
Original file line number Diff line number Diff line change 11run :
22 concurrency : 8
3- deadline : 5m
3+ timeout : 5m
44 issues-exit-code : 1
55 tests : true
You can’t perform that action at this time.
0 commit comments