4848 working-directory : sdk
4949 args : -c ../scripts/.golangci.yml
5050 skip-cache : true
51+ - name : Upload linter logs
52+ if : success() || failure()
53+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
54+ with :
55+ name : result-linter-logs
56+ path : /tmp/linter-logs.log
57+ retention-days : 3
5158
5259 unit-test :
5360 name : Unit Tests
6370 uses : codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
6471 with :
6572 files : ./build/test/coverage.out
73+ - name : Upload unit-test logs
74+ if : success() || failure()
75+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
76+ with :
77+ name : result-unit-test-logs
78+ path : /tmp/unit-test-logs.log
79+ retention-days : 3
6680
6781 component-test :
6882 name : Component Tests
7488 go-version-file : ' go.mod'
7589 - name : Run Component Tests
7690 run : make component-test
91+ - name : Upload component test logs
92+ if : success() || failure()
93+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
94+ with :
95+ name : result-component-test-logs
96+ path : /tmp/component-test-logs.log
97+ retention-days : 3
7798
7899 build-unsigned-snapshot :
79100 name : Build unsigned snapshot
@@ -173,12 +194,12 @@ jobs:
173194 dockerid=$(docker ps -a --format "{{.ID}}")
174195 docker logs "$dockerid"
175196
176- - name : Archive integration test logs
197+ - name : Upload integration test logs
177198 if : success() || failure()
178199 uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
179200 with :
180- name : integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}
181- path : /tmp/integration-test-logs/
201+ name : result- integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}
202+ path : /tmp/integration-test-logs.log
182203 retention-days : 3
183204
184205 official-oss-image-integration-tests :
@@ -233,6 +254,14 @@ jobs:
233254 name : official-oss-integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}
234255 path : /tmp/integration-test-logs/
235256 retention-days : 3
257+
258+ - name : Upload oss integration test logs
259+ if : success() || failure()
260+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
261+ with :
262+ name : result-oss-integration-tests-logs
263+ path : /tmp/oss-integration-tests-logs.log
264+ retention-days : 3
236265
237266 official-plus-image-integration-tests :
238267 name : Integration Tests - Official Plus Images
@@ -301,6 +330,14 @@ jobs:
301330 name : official-plus-integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}-${{ matrix.container.plus }}
302331 path : /tmp/integration-test-logs/
303332 retention-days : 3
333+
334+ - name : Upload plus integration test logs
335+ if : success() || failure()
336+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
337+ with :
338+ name : result-plus-integration-tests-logs
339+ path : /tmp/plus-integration-tests-logs.log
340+ retention-days : 3
304341
305342 performance-test :
306343 name : Performance Tests
@@ -324,6 +361,13 @@ jobs:
324361 "nginx-key=${{ secrets.NGINX_KEY }}"
325362 - name : Run Performance Tests
326363 run : docker run -v ${GITHUB_WORKSPACE}:/home/nginx/ --rm nginx-agent-benchmark:1.0.0
364+ - name : Upload performance test logs
365+ if : success() || failure()
366+ uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
367+ with :
368+ name : result-performance-test-logs
369+ path : /tmp/performance-test-logs.log
370+ retention-days : 3
327371
328372 build-signed-snapshot :
329373 name : Build signed snapshot
@@ -409,3 +453,14 @@ jobs:
409453 permissions :
410454 contents : write
411455 pull-requests : write
456+
457+ merge-artifacts :
458+ runs-on : ubuntu-22.04
459+ needs : [ lint, unit-test, component-test, performance-test, integration-tests, official-plus-image-integration-tests, official-oss-image-integration-tests ]
460+ steps :
461+ - name : Merge Artifacts
462+ uses : actions/upload-artifact/merge@v4
463+ with :
464+ name : ci-test-workflow-logs
465+ pattern : result-*
466+ delete-merged : true
0 commit comments