Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,43 @@ name: E2E Tests
on:
pull_request:
branches: [trunk]
push:
branches: [trunk]
# Allow manually triggering the workflow
workflow_dispatch:

# Cancels all previous workflow runs for pull requests that have not completed
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

# Disable permissions for all available scopes by default
permissions: {}

jobs:
test:
name: Playwright e2e Tests
name: Node.js ${{ matrix.node }}
runs-on: ubuntu-latest
permissions:
contents: read

strategy:
fail-fast: false
matrix:
event: ['${{ github.event_name }}']
node: ['22', '24']
exclude:
# On PRs: only test Node 22
- event: 'pull_request'
node: '24'

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version: ${{ matrix.node }}
cache: 'npm'

- name: Install dependencies
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ jobs:
runs-on: ubuntu-latest

strategy:
matrix:
include:
# Minimum supported PHP
- php: '7.4'
# Latest stable PHP
- php: '8.4'
fail-fast: false
matrix:
event: ['${{ github.event_name }}']
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
exclude:
# On PRs: only test minimum and latest PHP versions
- event: 'pull_request'
php: '8.0'
- event: 'pull_request'
php: '8.1'
- event: 'pull_request'
php: '8.2'
- event: 'pull_request'
php: '8.3'

steps:
- name: Checkout code
Expand Down
Loading