@@ -3,51 +3,48 @@ name: test
33on :
44 pull_request :
55 types : [opened, reopened, synchronize]
6- branches :
7- - master
8- - v3
9- - v4
6+ branches : [ master, v3, v4 ]
107 push :
11- branches :
12- - master
13- - v3
14- - v4
8+ branches : [ master, v3, v4 ]
9+ paths-ignore :
10+ - ' .github/** '
11+ - ' .gitea/** '
1512
1613jobs :
1714 test :
1815 runs-on : ubuntu-latest
1916 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 : ${{ 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
17+ - name : checkout code
18+ uses : actions/checkout@v4
19+ with :
20+ filter : ' blob:none'
21+ - name : checkout tests
22+ uses : actions/checkout@v4
23+ with :
24+ ref : master
25+ filter : ' blob:none'
26+ repository : unistack-org/micro-tests
27+ path : micro-tests
28+ - name : setup go
29+ uses : actions/setup-go@v5
30+ with :
31+ cache-dependency-path : " **/*.sum"
32+ go-version : ' stable'
33+ - name : setup go work
34+ env :
35+ GOWORK : ${{ github.workspace }}/go.work
36+ run : |
37+ go work init
38+ go work use .
39+ go work use micro-tests
40+ - name : setup deps
41+ env :
42+ GOWORK : ${{ github.workspace }}/go.work
43+ run : go get -v ./...
44+ - name : run tests
45+ env :
46+ INTEGRATION_TESTS : yes
47+ GOWORK : ${{ github.workspace }}/go.work
48+ run : |
49+ cd micro-tests
50+ go test -mod readonly -v ./... || true
0 commit comments