Skip to content

Commit 4b1efa0

Browse files
committed
Require PHP >=8.2
1 parent 20579e0 commit 4b1efa0

7 files changed

Lines changed: 62 additions & 1719 deletions

File tree

.github/workflows/coverage.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: coverage
2+
3+
on: [push, pull_request]
4+
5+
permissions: {}
6+
7+
jobs:
8+
coverage:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
with:
13+
persist-credentials: false
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
17+
with:
18+
php-version: '8.4'
19+
coverage: pcov
20+
21+
- name: Install dependencies
22+
run: composer install --no-interaction --prefer-dist
23+
24+
- name: Run tests with coverage
25+
run: vendor/bin/phpunit --coverage-text

.github/workflows/test.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
php-version: ['8.4']
12+
php-version: ['8.2', '8.3', '8.4']
1313
steps:
1414
- uses: actions/checkout@v5
1515
with:
@@ -19,13 +19,10 @@ jobs:
1919
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
2020
with:
2121
php-version: ${{ matrix.php-version }}
22-
coverage: pcov
22+
coverage: none
2323

2424
- name: Install dependencies
2525
run: composer install --no-interaction --prefer-dist
2626

2727
- name: Run tests
2828
run: vendor/bin/phpunit
29-
30-
- name: Run tests with coverage
31-
run: vendor/bin/phpunit --coverage-text

.github/workflows/zizmor.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Zizmor
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
pull_request:
7+
branches: ['**']
8+
9+
permissions: {}
10+
11+
jobs:
12+
zizmor:
13+
name: zizmor
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
actions: read
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
21+
with:
22+
persist-credentials: false
23+
24+
- name: Install the latest version of uv
25+
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba #v6.3.1
26+
with:
27+
enable-cache: false
28+
29+
- name: Run zizmor
30+
run: uvx zizmor@1.14.0 .github/workflows -v -p --min-severity=medium

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
}
2121
],
2222
"require": {
23-
"php": ">=8",
23+
"php": ">=8.2",
2424
"ext-mbstring": "*"
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "^12.0"
27+
"phpunit/phpunit": "^10.0 || ^11.0 || ^12.0"
2828
}
2929
}

0 commit comments

Comments
 (0)