Skip to content

Commit 0df0b8c

Browse files
Attempt to trim down artifacvts
1 parent 8d6af9b commit 0df0b8c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,28 +66,34 @@ jobs:
6666
username: ${{ github.actor }}
6767
password: ${{ secrets.GITHUB_TOKEN }}
6868

69+
- name: Set ARTIFACTS_DIR
70+
run: echo "ARTIFACTS_DIR=${RUNNER_TEMP}/artifacts" >> $GITHUB_ENV
71+
72+
- name: Create the artifacts directory
73+
run: mkdir -p "$ARTIFACTS_DIR"
74+
6975
- name: Record start time
7076
run: TEST_START=`date +%s` >> $GITHUB_ENV
7177

7278
- name: Run the tests
73-
run: bin/test | tee "${RUNNER_TEMP}/test.out"
79+
run: bin/test | tee "${ARTIFACTS_DIR}/test.out"
7480
env:
7581
COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
7682
DOCKER_APP_IMAGE: ${{ needs.build.outputs.build-image }}
7783

78-
- name: Collect service logs
84+
- name: Collect additional artifacts
7985
if: ${{ always() }}
8086
run: |
81-
docker compose logs > "${RUNNER_TEMP}/docker-services.log" || true
82-
docker events --json --since $TEST_START --until `date +%s` > "${RUNNER_TEMP}/docker-events.log" || true
83-
docker compose config > "${RUNNER_TEMP}/docker-compose.yml" || true
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
8490
8591
- name: Upload test report
8692
if: ${{ always() }}
8793
uses: actions/upload-artifact@v4
8894
with:
8995
name: Test Report (${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }})
90-
path: ${{ runner.temp }}
96+
path: ${{ github.env.ARTIFACTS_DIR }}
9197
if-no-files-found: error
9298

9399
push:

0 commit comments

Comments
 (0)