Skip to content

Commit 3ea6816

Browse files
author
SilviaAmAm
committed
👷 [#172] chore: Setup E2E tests in CI
1 parent ea46551 commit 3ea6816

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
npm run lint
6666
CI=false npm run build
6767
env:
68-
MYKN_API_URL: "http://localhost:8000"
68+
MYKN_API_URL: ""
6969

7070
- uses: actions/upload-artifact@v4
7171
with:
@@ -238,7 +238,7 @@ jobs:
238238
./bin/setup_e2e.sh
239239
python src/manage.py compilemessages
240240
python src/manage.py collectstatic --noinput --link
241-
pytest -k e2e --tracing=retain-on-failure --output=$PLAYWRIGHT_TRACE_PATH src/
241+
pytest -k e2e --tracing=retain-on-failure --output=$PLAYWRIGHT_TRACE_PATH --browser=${{ matrix.browser }} src/
242242
env:
243243
DJANGO_SETTINGS_MODULE: openbeheer.conf.ci
244244
SECRET_KEY: dummy
@@ -249,6 +249,14 @@ jobs:
249249
# See https://github.com/microsoft/playwright-pytest/issues/29
250250
DJANGO_ALLOW_ASYNC_UNSAFE: yes
251251
SKIP_BUILD: yes
252+
253+
- uses: actions/upload-artifact@v4
254+
if: ${{ failure() }}
255+
with:
256+
name: ${{ matrix.browser }}-playwright-trace.zip
257+
path: ${{ github.workspace }}/backend/${{ matrix.browser }}-playwright-trace.zip
258+
retention-days: 1
259+
if-no-files-found: error
252260

253261

254262
docs:

0 commit comments

Comments
 (0)