File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,12 @@ jobs:
148148 username : ${{ github.actor }}
149149 password : ${{ secrets.GITHUB_TOKEN }}
150150
151+ - name : Set ARTIFACTS_DIR
152+ run : echo "ARTIFACTS_DIR=${RUNNER_TEMP}/artifacts" >> $GITHUB_ENV
153+
154+ - name : Create the artifacts directory
155+ run : mkdir -p "$ARTIFACTS_DIR"
156+
151157 - name : Run the test script
152158 env :
153159 LIT_TIND_API_KEY : ${{ secrets.LIT_TIND_API_KEY }}
@@ -156,6 +162,22 @@ jobs:
156162 docker compose up --detach --wait
157163 docker compose exec app bin/test
158164
165+ - name : Copy out artifacts
166+ if : ${{ always() }}
167+ run : |
168+ docker compose cp app:/opt/app/artifacts "${ARTFACTS_DIR}/"
169+ docker compose logs | tee "${ARTIFACTS_DIR}/docker-services.log"
170+ docker compose config | tee "${ARTIFACTS_DIR}/docker-compose.merged.yml"
171+ docker events --json --since $TEST_START --until `date +%s` | tee "${ARTIFACTS_DIR}/docker-events.json"
172+
173+ - name : Upload test report
174+ if : ${{ always() }}
175+ uses : actions/upload-artifact@v4
176+ with :
177+ name : avplayer Test Report (${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }})
178+ path : ${{ env.ARTIFACTS_DIR }}
179+ if-no-files-found : error
180+
159181 push :
160182 runs-on : ubuntu-latest
161183 needs :
You can’t perform that action at this time.
0 commit comments