Skip to content

Commit 8f4cda3

Browse files
yet another approach
1 parent feb0f91 commit 8f4cda3

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
@@ -299,15 +299,16 @@ jobs:
299299
run: |
300300
cd ${HOME}/build/project
301301
mkdir -p behat-output
302-
# run behat inside the app container, with volume mount
303302
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/ibexabehat \
303+
-v $GITHUB_WORKSPACE/build/project/behat-output:/var/www/behat-output \
304+
app sh -c '
305+
su -s /bin/sh www-data -c "
306+
vendor/bin/behat \
307307
--group-count=${{ needs.setup-jobs.outputs.job-count }} \
308308
--group-offset=${{ matrix.offset }} \
309309
${{ inputs.test-suite }} \
310310
--process=1
311+
"
311312
'
312313
continue-on-error: false
313314

@@ -316,7 +317,7 @@ jobs:
316317
uses: actions/upload-artifact@v4
317318
with:
318319
name: behat-artifacts
319-
path: ${HOME}/build/project/behat-output/**
320+
path: build/project/behat-output/**
320321

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

0 commit comments

Comments
 (0)