Skip to content

Commit f5701c7

Browse files
yet another approach
1 parent 95b693c commit f5701c7

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
@@ -329,21 +329,24 @@ jobs:
329329
run: |
330330
cd ${HOME}/build/project
331331
mkdir -p var/www/behat-output
332-
docker compose --env-file=.env exec -T --user www-data app sh -c '
333-
vendor/bin/ibexabehat \
334-
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
335-
--group-offset=${{ matrix.offset }} \
336-
${{ inputs.test-suite }} \
337-
--process=1
332+
333+
docker compose run --rm \
334+
-v ${HOME}/build/project/behat-output:/var/www/behat-output \
335+
--user www-data app sh -c '
336+
vendor/bin/behat \
337+
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
338+
--group-offset=${{ matrix.offset }} \
339+
${{ inputs.test-suite }} \
340+
--process=1
338341
'
339342
continue-on-error: true
340343

341344
- name: Upload Behat artifacts
342-
if: always()
345+
if: failure()
343346
uses: actions/upload-artifact@v4
344347
with:
345348
name: behat-artifacts
346-
path: /var/www/behat-output/*
349+
path: ${HOME}/build/project/behat-output/**
347350

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

0 commit comments

Comments
 (0)