Skip to content

Commit c7f757e

Browse files
yet another approach
1 parent c498bfa commit c7f757e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/browser-tests.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,21 +299,24 @@ jobs:
299299
run: |
300300
cd ${HOME}/build/project
301301
mkdir -p var/www/behat-output
302-
docker compose --env-file=.env exec -T --user www-data app sh -c '
303-
vendor/bin/ibexabehat \
304-
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
305-
--group-offset=${{ matrix.offset }} \
306-
${{ inputs.test-suite }} \
307-
--process=1
302+
303+
docker compose run --rm \
304+
-v ${HOME}/build/project/behat-output:/var/www/behat-output \
305+
--user www-data app sh -c '
306+
vendor/bin/behat \
307+
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
308+
--group-offset=${{ matrix.offset }} \
309+
${{ inputs.test-suite }} \
310+
--process=1
308311
'
309312
continue-on-error: true
310313

311314
- name: Upload Behat artifacts
312-
if: always()
315+
if: failure()
313316
uses: actions/upload-artifact@v4
314317
with:
315318
name: behat-artifacts
316-
path: /var/www/behat-output/*
319+
path: ${HOME}/build/project/behat-output/**
317320

318321
- if: always() && github.event_name != 'pull_request'
319322
name: Create Slack message variables

0 commit comments

Comments
 (0)