@@ -156,10 +156,6 @@ jobs:
156156 - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
157157 with :
158158 go-version-file : ' go.mod'
159- # - name: Clean Docker Environment
160- # run: |
161- # docker system prune -af --volumes
162- # docker builder prune -af
163159 - name : Download Packages
164160 uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
165161 with :
@@ -169,8 +165,8 @@ jobs:
169165 run : echo "START_TIME=$(date +"%Y-%m-%dT%H:%M:%S.%NZ")" >> ${GITHUB_ENV}
170166 - name : Create Directory
171167 run : mkdir -p ${{github.workspace}}/test/dashboard/logs/${{github.job}}/${{matrix.container.image}}${{matrix.container.version}}/
172- # - name: Start Promtail
173- # uses: ./.github/actions/start-promtail
168+ - name : Start Promtail
169+ uses : ./.github/actions/start-promtail
174170 - name : Run Integration Tests
175171 run : |
176172 go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
@@ -227,11 +223,20 @@ jobs:
227223 with :
228224 name : nginx-agent-unsigned-snapshots
229225 path : build
226+ - name : Set Start Time
227+ run : echo "START_TIME=$(date +"%Y-%m-%dT%H:%M:%S.%NZ")" >> ${GITHUB_ENV}
228+ - name : Create Directory
229+ run : mkdir -p ${{github.workspace}}/test/dashboard/logs/${{github.job}}/${{matrix.container.image}}${{matrix.container.version}}/
230+ - name : Start Promtail
231+ uses : ./.github/actions/start-promtail
230232 - name : Run Integration Tests
231233 run : |
232234 go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
233235 CONTAINER_NGINX_IMAGE_REGISTRY="${{ env.NGINX_OSS_REGISTRY }}" TAG="${{ matrix.container.version }}-${{ matrix.container.image }}" OS_RELEASE="${{ matrix.container.release }}"\
234- make official-image-integration-test
236+ make official-image-integration-test | tee ${{github.workspace}}/test/dashboard/logs/${{github.job}}/${{matrix.container.image}}${{matrix.container.version}}/raw_logs.log && exit "${PIPESTATUS[0]}"
237+ - name : Generate Test Results
238+ if : always()
239+ run : bash ./scripts/workflow/generate_results.sh ${{job.status}} ${{env.START_TIME}} ${{github.job}}/${{matrix.container.image}}${{matrix.container.version}} ${{github.workspace}}
235240 - name : Container Output Logs
236241 if : failure()
237242 run : |
0 commit comments