File tree 1 file changed +4
-17
lines changed
1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
9
9
permissions :
10
- # NOTE: actions/upload-artifact makes no use of permissions
11
- # See https://github.com/actions/upload-artifact/issues/197#issuecomment-832279436
12
10
contents : read # for "git clone"
13
11
14
12
defaults :
@@ -87,42 +85,31 @@ jobs:
87
85
- name : Show Hurl version
88
86
run : hurl --version
89
87
90
- - name : Create directory for reports
91
- run : mkdir tests-reports
92
-
93
88
- name : Run integration tests
94
89
run : >-
95
90
hurl \
96
91
--error-format long \
97
- --report-html tests-reports \
98
92
--variable SERVER_URL=http://127.0.0.1:${{ matrix.application-port }} \
99
93
--test \
100
94
tests/crud.hurl
101
95
102
- - name : Save application logs
96
+ - name : Show application logs
103
97
if : failure()
104
98
working-directory : docker
105
99
run : >-
106
100
docker compose logs \
107
101
--no-log-prefix \
108
102
--timestamps \
109
- ${{ matrix.docker-service-name }} | tee ../tests-reports/application-logs.txt
103
+ ${{ matrix.docker-service-name }}
110
104
111
- - name : Save database logs
105
+ - name : Show database logs
112
106
if : failure()
113
107
working-directory : docker
114
108
run : >-
115
109
docker compose logs \
116
110
--no-log-prefix \
117
111
--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 }}
126
113
127
114
- name : Stop containers
128
115
if : always()
You can’t perform that action at this time.
0 commit comments