Skip to content

Merge branch 'development' into dev/playwright-migration #493

Merge branch 'development' into dev/playwright-migration

Merge branch 'development' into dev/playwright-migration #493

Workflow file for this run

name: Test e2e
on:
push:
branches-ignore: master
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
e2e:
name: Playwright E2E tests
env:
DOCKER_FILE: docker-compose.ci.yml
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
- uses: actions/cache@v2
id: npm-and-build-cache
with:
path: |
~/.cache/Cypress
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm deps
run: |
npm ci
npm install -g playwright-cli
npx playwright install --with-deps chromium
- name: Install composer deps
run: composer install --no-dev
- name: Install environment
run: |
npm run env:up
- name: Run the tests
run: |
npm run test:e2e:playwright
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Archive test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-playwright-results
path: artifacts
retention-days: 3