@@ -120,20 +120,18 @@ jobs:
120
120
chmod +x docker/action-scripts/build-utbot.sh
121
121
./docker/action-scripts/build-utbot.sh
122
122
123
- - name : Cache generated tests
124
- id : cache-generated-tests
125
- uses : actions/cache@v3
126
- with :
127
- path : |
128
- ./integration-tests/c-example
129
- key : key
130
-
131
123
- name : Generate tests
132
124
if : steps.cache-generated-tests.outputs.cache-hit != 'true'
133
125
run : |
134
126
chmod +x docker/action-scripts/generate-tests.sh
135
127
./docker/action-scripts/generate-tests.sh
136
128
129
+ - name : Upload generated tests for next job
130
+ uses : actions/upload-artifact@v3
131
+ with :
132
+ name : project
133
+ path : ./integration-tests/c-example
134
+
137
135
build-portable-container :
138
136
needs : build-utbot-and-generate-test
139
137
runs-on : ubuntu-latest
@@ -150,20 +148,12 @@ jobs:
150
148
run : |
151
149
docker build . --file docker/Dockerfile_portable
152
150
153
-
154
- - name : Restore generated tests
155
- id : cache-generated-tests
156
- uses : actions/cache@v3
151
+ - name : Download generated test
152
+ uses : actions/download-artifact@v3
157
153
with :
158
- path : |
159
- ./integration-tests/c-example
160
- key : key
161
-
162
- - if : needs.build-utbot-and-generate-test.steps.cache-generated-tests.outputs.cache-hit != 'true'
163
- name : Fail
164
- run : exit 1
154
+ name : project
165
155
166
- - name : Test Portability
156
+ - name : Check test portability
167
157
run : |
168
158
chmod +x docker/action-scripts/check-portable-tests.sh
169
159
./docker/action-scripts/check-portable-tests.sh
0 commit comments