Skip to content

Commit 13e26be

Browse files
yet another approach
1 parent e2beae4 commit 13e26be

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
@@ -324,21 +324,24 @@ jobs:
324324
run: |
325325
cd ${HOME}/build/project
326326
mkdir -p var/www/behat-output
327-
docker compose --env-file=.env exec -T --user www-data app sh -c '
328-
vendor/bin/ibexabehat \
329-
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
330-
--group-offset=${{ matrix.offset }} \
331-
${{ inputs.test-suite }} \
332-
--process=1
327+
328+
docker compose run --rm \
329+
-v ${HOME}/build/project/behat-output:/var/www/behat-output \
330+
--user www-data app sh -c '
331+
vendor/bin/behat \
332+
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
333+
--group-offset=${{ matrix.offset }} \
334+
${{ inputs.test-suite }} \
335+
--process=1
333336
'
334337
continue-on-error: true
335338

336339
- name: Upload Behat artifacts
337-
if: always()
340+
if: failure()
338341
uses: actions/upload-artifact@v4
339342
with:
340343
name: behat-artifacts
341-
path: /var/www/behat-output/*
344+
path: ${HOME}/build/project/behat-output/**
342345

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

0 commit comments

Comments
 (0)