Skip to content

Commit 4e22c12

Browse files
committed
chore: don't save logs as artifact
Part of #13
1 parent 7e1ff65 commit 4e22c12

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/integration-tests.yml

+4-17
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77

88
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
99
permissions:
10-
# NOTE: actions/upload-artifact makes no use of permissions
11-
# See https://github.com/actions/upload-artifact/issues/197#issuecomment-832279436
1210
contents: read # for "git clone"
1311

1412
defaults:
@@ -87,42 +85,31 @@ jobs:
8785
- name: Show Hurl version
8886
run: hurl --version
8987

90-
- name: Create directory for reports
91-
run: mkdir tests-reports
92-
9388
- name: Run integration tests
9489
run: >-
9590
hurl \
9691
--error-format long \
97-
--report-html tests-reports \
9892
--variable SERVER_URL=http://127.0.0.1:${{ matrix.application-port }} \
9993
--test \
10094
tests/crud.hurl
10195
102-
- name: Save application logs
96+
- name: Show application logs
10397
if: failure()
10498
working-directory: docker
10599
run: >-
106100
docker compose logs \
107101
--no-log-prefix \
108102
--timestamps \
109-
${{ matrix.docker-service-name }} | tee ../tests-reports/application-logs.txt
103+
${{ matrix.docker-service-name }}
110104
111-
- name: Save database logs
105+
- name: Show database logs
112106
if: failure()
113107
working-directory: docker
114108
run: >-
115109
docker compose logs \
116110
--no-log-prefix \
117111
--timestamps \
118-
${{ matrix.database-service-name }} | tee ../tests-reports/database-logs.txt
119-
120-
- name: Save report
121-
if: failure()
122-
uses: actions/[email protected] # https://github.com/actions/upload-artifact
123-
with:
124-
name: ${{ matrix.docker-service-name }}-report-and-logs
125-
path: tests-reports/
112+
${{ matrix.database-service-name }}
126113
127114
- name: Stop containers
128115
if: always()

0 commit comments

Comments
 (0)