Skip to content

Commit 9e63e31

Browse files
committed
Update e2e and phpunit version matrices
1 parent 65d8085 commit 9e63e31

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

.github/workflows/e2e.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,45 @@ name: E2E Tests
33
on:
44
pull_request:
55
branches: [trunk]
6+
push:
7+
branches: [trunk]
8+
# Allow manually triggering the workflow
9+
workflow_dispatch:
10+
11+
# Cancels all previous workflow runs for pull requests that have not completed
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
14+
cancel-in-progress: true
15+
16+
# Disable permissions for all available scopes by default
17+
permissions: {}
618

719
jobs:
820
test:
9-
name: Playwright e2e Tests
21+
name: Node.js ${{ matrix.node }}
1022
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
event: ['${{ github.event_name }}']
30+
node: ['20', '22', '24']
31+
exclude:
32+
# On PRs: only test Node 22
33+
- event: 'pull_request'
34+
node: '20'
35+
- event: 'pull_request'
36+
node: '24'
37+
1138
steps:
1239
- uses: actions/checkout@v4
1340

1441
- name: Setup Node.js
1542
uses: actions/setup-node@v4
1643
with:
17-
node-version-file: '.nvmrc'
44+
node-version: ${{ matrix.node }}
1845
cache: 'npm'
1946

2047
- name: Install dependencies

.github/workflows/phpunit.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
strategy:
19-
matrix:
20-
include:
21-
# Minimum supported PHP
22-
- php: '7.4'
23-
# Latest stable PHP
24-
- php: '8.4'
2519
fail-fast: false
20+
matrix:
21+
event: ['${{ github.event_name }}']
22+
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
23+
exclude:
24+
# On PRs: only test minimum and latest PHP versions
25+
- event: 'pull_request'
26+
php: '8.0'
27+
- event: 'pull_request'
28+
php: '8.1'
29+
- event: 'pull_request'
30+
php: '8.2'
2631

2732
steps:
2833
- name: Checkout code

0 commit comments

Comments
 (0)