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 : .github/artifacts/
57- retention-days : 1
5851
5952 unit-test :
6053 name : Unit Tests
7063 uses : codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
7164 with :
7265 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 : .github/artifacts/
79- retention-days : 1
8066
8167 component-test :
8268 name : Component Tests
8874 go-version-file : ' go.mod'
8975 - name : Run Component Tests
9076 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 : .github/artifacts/
97- retention-days : 1
9877
9978 build-unsigned-snapshot :
10079 name : Build unsigned snapshot
@@ -194,13 +173,13 @@ jobs:
194173 dockerid=$(docker ps -a --format "{{.ID}}")
195174 docker logs "$dockerid"
196175
197- - name : Upload integration test logs
176+ - name : Archive integration test logs
198177 if : success() || failure()
199178 uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
200179 with :
201180 name : result-integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}
202- path : .github/artifacts/
203- retention-days : 1
181+ path : /tmp/integration-test-logs
182+ retention-days : 3
204183
205184 official-oss-image-integration-tests :
206185 name : Integration Tests - Official OSS Images
@@ -254,14 +233,6 @@ jobs:
254233 name : official-oss-integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}
255234 path : /tmp/integration-test-logs/
256235 retention-days : 1
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 : .github/artifacts/
264- retention-days : 1
265236
266237 official-plus-image-integration-tests :
267238 name : Integration Tests - Official Plus Images
@@ -330,14 +301,6 @@ jobs:
330301 name : official-plus-integration-test-logs-${{ matrix.container.image }}-${{ matrix.container.version }}-${{ matrix.container.plus }}
331302 path : /tmp/integration-test-logs/
332303 retention-days : 1
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 : .github/artifacts/
340- retention-days : 1
341304
342305 performance-test :
343306 name : Performance Tests
@@ -361,13 +324,6 @@ jobs:
361324 "nginx-key=${{ secrets.NGINX_KEY }}"
362325 - name : Run Performance Tests
363326 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 : .github/artifacts/
370- retention-days : 1
371327
372328 build-signed-snapshot :
373329 name : Build signed snapshot
@@ -453,15 +409,3 @@ jobs:
453409 permissions :
454410 contents : write
455411 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- if : success() || failure()
463- uses : actions/upload-artifact/merge@v4
464- with :
465- name : ci-test-workflow-logs
466- pattern : result-*
467- delete-merged : true
0 commit comments