Skip to content

Commit 997f6f8

Browse files
authored
ci: upgrade deps and use PHP 8.3 (#420)
* ci: upgrade deps and use PHP 8.3 * chore: updage deps * force PHPUnit version * fix ci
1 parent 8d683f2 commit 997f6f8

File tree

5 files changed

+54
-43
lines changed

5 files changed

+54
-43
lines changed

.github/dependabot.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
-
4+
package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
commit-message:
9+
prefix: ci

.github/workflows/ci.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ jobs:
1919
- '8.0'
2020
- '8.1'
2121
- '8.2'
22+
- '8.3'
2223
include:
23-
- php: '8.2'
24+
- php: '8.3'
2425
latest: true
26+
fail-fast: false
2527
steps:
26-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2729

2830
- name: Setup PHP
2931
uses: shivammathur/setup-php@v2
@@ -45,7 +47,7 @@ jobs:
4547

4648
- name: Install prerequisites
4749
run: |
48-
wget -O box.phar https://github.com/humbug/box/releases/download/4.3.8/box.phar
50+
wget -O box.phar https://github.com/humbug/box/releases/download/4.5.1/box.phar
4951
echo "BOX_BIN=$(pwd)/box.phar" >> $GITHUB_ENV
5052
sudo chown -R $(whoami):$(whoami) .
5153
@@ -54,7 +56,7 @@ jobs:
5456
run: composer install --prefer-dist --no-interaction --no-progress --ansi
5557

5658
- name: Update dependencies
57-
if: "!matrix.latest"
59+
if: '!matrix.latest'
5860
run: composer update --no-interaction --no-progress --ansi
5961

6062
- name: Enable code coverage
@@ -63,7 +65,7 @@ jobs:
6365

6466
- name: Run PHPUnit
6567
run: vendor/bin/simple-phpunit ${{ matrix.latest && '--coverage-clover build/logs/phpunit/clover.xml' || '' }}
66-
68+
6769
- name: Run PHP CS Fixer
6870
if: matrix.latest
6971
run: php-cs-fixer fix --dry-run --format=checkstyle --ansi | cs2pr

.github/workflows/release.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ jobs:
99
build:
1010
name: Create Release and Upload Release Asset
1111
runs-on: ubuntu-latest
12-
outputs:
13-
upload_url: ${{ steps.step_upload_url.outputs.upload_url }}
1412
steps:
1513
- name: Checkout code
16-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1715

1816
- name: Setup PHP with extensions
1917
uses: shivammathur/setup-php@v2
2018
with:
21-
php-version: '8.1'
19+
php-version: '8.3'
2220
extensions: json
2321
ini-values: memory_limit=-1
2422
tools: composer
@@ -27,7 +25,7 @@ jobs:
2725
run: composer install --prefer-dist --no-interaction --no-progress --ansi
2826

2927
- name: Download box.phar
30-
run: wget -O box.phar https://github.com/humbug/box/releases/download/4.2.0/box.phar
28+
run: wget -O box.phar https://github.com/humbug/box/releases/download/4.5.1/box.phar
3129

3230
- name: Compile project
3331
run: php ./box.phar compile

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"phpstan/phpstan": "^1.2.0",
6262
"symfony/finder": "^5.2 || ^6.0 || ^7.0"
6363
},
64+
"conflict": {
65+
"sebastian/comparator": ">=5.0"
66+
},
6467
"bin": [
6568
"bin/schema"
6669
],

composer.lock

+32-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)