Skip to content

Commit e13e2a5

Browse files
yet another approach
1 parent 3736993 commit e13e2a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/browser-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,16 @@ jobs:
329329
run: |
330330
cd ${HOME}/build/project
331331
mkdir -p behat-output
332-
# run behat inside the app container, with volume mount
333332
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/ibexabehat \
333+
-v $GITHUB_WORKSPACE/build/project/behat-output:/var/www/behat-output \
334+
app sh -c '
335+
su -s /bin/sh www-data -c "
336+
vendor/bin/behat \
337337
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
338338
--group-offset=${{ matrix.offset }} \
339339
${{ inputs.test-suite }} \
340340
--process=1
341+
"
341342
'
342343
continue-on-error: false
343344

@@ -346,7 +347,7 @@ jobs:
346347
uses: actions/upload-artifact@v4
347348
with:
348349
name: behat-artifacts
349-
path: ${HOME}/build/project/behat-output/**
350+
path: build/project/behat-output/**
350351

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

0 commit comments

Comments
 (0)