22
33on :
44 push :
5- branches : [ master ]
5+ branches : [master]
66 pull_request :
7- branches : [ master ]
7+ branches : [master]
88
99concurrency :
1010 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -16,15 +16,15 @@ jobs:
1616 strategy :
1717 fail-fast : false
1818 matrix :
19- flags : [ '', ' -race' ]
19+ flags : ["", " -race" ]
2020 steps :
2121 - name : Checkout code
2222 uses : actions/checkout@v4
2323
2424 - name : Install Go
2525 uses : actions/setup-go@v5
2626 with :
27- go-version : ' 1.24'
27+ go-version : " 1.24"
2828 cache : true
2929
3030 - name : Build
3535 GOFLAGS : ${{ matrix.flags }}
3636 LOG_LEVEL : error
3737 run : |
38- go test -coverprofile=profile${{ matrix.flags }}.out -covermode=atomic -v -coverpkg=./... ./... -json | tee test-report${{ matrix.flags }}.json
38+ go test -coverprofile=profile${{ matrix.flags }}.out -covermode=atomic -coverpkg=./... ./... -json 2>&1 | tee test-report${{ matrix.flags }}.json
39+ TEST_EXIT_CODE=${PIPESTATUS[0]}
40+ exit $TEST_EXIT_CODE
3941
4042 - name : Coverage report
4143 run : |
@@ -82,15 +84,15 @@ jobs:
8284 strategy :
8385 fail-fast : false
8486 matrix :
85- flags : [ '', ' -race' ]
87+ flags : ["", " -race" ]
8688 steps :
8789 - name : Checkout code
8890 uses : actions/checkout@v4
8991
9092 - name : Install Go
9193 uses : actions/setup-go@v5
9294 with :
93- go-version : ' 1.24'
95+ go-version : " 1.24"
9496 cache : true
9597
9698 - name : Run docker containers
@@ -110,7 +112,7 @@ jobs:
110112 else
111113 echo "No coverage data generated for ${{ matrix.flags }} tests" > coverage-e2e${{ matrix.flags }}.html
112114 fi
113-
115+
114116 - name : Upload test artifacts
115117 uses : actions/upload-artifact@v4
116118 with :
@@ -161,7 +163,7 @@ jobs:
161163 - name : Install Go
162164 uses : actions/setup-go@v5
163165 with :
164- go-version : ' 1.24'
166+ go-version : " 1.24"
165167 cache : true
166168
167169 - name : Lint
@@ -186,7 +188,7 @@ jobs:
186188 - name : Install Go
187189 uses : actions/setup-go@v5
188190 with :
189- go-version : ' 1.24'
191+ go-version : " 1.24"
190192 cache : true
191193
192194 - name : Generate doc
@@ -210,7 +212,7 @@ jobs:
210212 - name : Install Go
211213 uses : actions/setup-go@v5
212214 with :
213- go-version : ' 1.24'
215+ go-version : " 1.24"
214216 cache : true
215217
216218 - name : Download dependencies
0 commit comments