File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,12 +81,17 @@ jobs:
8181 - name : Run the tests
8282 run : bin/test
8383
84- - name : Collect additional artifacts
84+ - name : Retain the compose file
8585 if : ${{ always() }}
86- run : |
87- docker compose logs > "${ARTIFACTS_DIR}/docker-services.log" || true
88- docker events --json --since $TEST_START --until `date +%s` > "${ARTIFACTS_DIR}/docker-events.log" || true
89- docker compose config > "${ARTIFACTS_DIR}/docker-compose.yml" || true
86+ run : docker compose config | tee "${ARTIFACTS_DIR}/docker-compose.yml"
87+
88+ - name : Retain compose logs
89+ if : ${{ always() }}
90+ run : docker compose logs | tee "${ARTIFACTS_DIR}/docker-services.log"
91+
92+ - name : Retain Docker events
93+ if : ${{ always() }}
94+ run : docker events --json --since $TEST_START --until `date +%s` | tee "${ARTIFACTS_DIR}/docker-events.json"
9095
9196 - name : Upload test report
9297 if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments