Skip to content

Commit a76a6e9

Browse files
authored
bump dependencies & phpstan + exclude 6 tests due to php-imagick incompatibilities (#74)
1 parent b9535df commit a76a6e9

File tree

8 files changed

+726
-557
lines changed

8 files changed

+726
-557
lines changed

.github/workflows/php.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
2020
steps:
2121
- name: Cancel Previous Runs
22-
uses: styfle/cancel-workflow-action@0.7.0
22+
uses: styfle/cancel-workflow-action@0.12.1
2323
with:
2424
access_token: ${{ github.token }}
2525

@@ -30,15 +30,15 @@ jobs:
3030
- "kill_previous"
3131
steps:
3232
- name: "Set up PHP"
33-
uses: "shivammathur/setup-php@v2"
33+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
3434
with:
3535
php-version: "latest"
3636

3737
- name: "Checkout code"
38-
uses: "actions/checkout@v3"
38+
uses: "actions/checkout@v4.2.2"
3939

4040
- name: "Install dependencies"
41-
uses: "ramsey/composer-install@v2"
41+
uses: ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
4242

4343
- name: Validate files
4444
run: composer validate-files
@@ -50,15 +50,15 @@ jobs:
5050
- "kill_previous"
5151
steps:
5252
- name: "Set up PHP"
53-
uses: "shivammathur/setup-php@v2"
53+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
5454
with:
5555
php-version: "latest"
5656

5757
- name: "Checkout code"
58-
uses: "actions/checkout@v3"
58+
uses: "actions/checkout@v4.2.2"
5959

6060
- name: "Install dependencies"
61-
uses: "ramsey/composer-install@v2"
61+
uses: ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
6262

6363
- name: Check Style
6464
run: composer check-code-style
@@ -70,17 +70,17 @@ jobs:
7070
- "php_syntax_errors"
7171
steps:
7272
- name: Checkout code
73-
uses: actions/checkout@v3
73+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7474

7575
- name: Setup PHP
76-
uses: shivammathur/setup-php@2.15.0
76+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
7777
with:
7878
php-version: "latest"
7979
coverage: none
8080
tools: phpstan
8181

8282
- name: Install Composer dependencies
83-
uses: "ramsey/composer-install@v2"
83+
uses: ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
8484

8585
- name: Run PHPStan
8686
run: vendor/bin/phpstan analyze
@@ -94,14 +94,14 @@ jobs:
9494
fail-fast: false
9595
matrix:
9696
php-version:
97-
- "8.2"
9897
- "8.3"
98+
- "8.4"
9999
env:
100100
extensions: curl, dom, imagick, json, libxml, mbstring
101101

102102
steps:
103103
- name: Checkout code
104-
uses: actions/checkout@v3
104+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105105

106106
- name: Set Up Imagick, FFmpeg & Exiftools
107107
run: |
@@ -110,7 +110,7 @@ jobs:
110110
sudo apt-get -y install ffmpeg libimage-exiftool-perl libmagickwand-dev
111111
112112
- name: Setup PHP Action
113-
uses: shivammathur/setup-php@2.15.0
113+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
114114
with:
115115
php-version: ${{ matrix.php-version }}
116116
extensions: ${{ env.extensions }}
@@ -121,7 +121,7 @@ jobs:
121121
# Dependencies need to be installed to make sure the PHPUnit classes are recognized.
122122
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
123123
- name: Install Composer dependencies
124-
uses: "ramsey/composer-install@v2"
124+
uses: ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
125125

126126
# - name: boot test server
127127
# run: vendor/bin/http_test_server > /dev/null 2>&1 &
@@ -139,7 +139,9 @@ jobs:
139139
run: composer run-tests
140140

141141
- name: Codecov
142-
uses: codecov/codecov-action@v1
142+
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
143+
env:
144+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
143145

144146
# support for mutation testing.
145147
#
@@ -159,7 +161,7 @@ jobs:
159161
# - "tests"
160162
# steps:
161163
# - name: Checkout code
162-
# uses: actions/checkout@v3
164+
# uses: actions/checkout@v4.2.2
163165

164166
# - name: Set Up Imagick, FFmpeg & Exiftools
165167
# run: |
@@ -168,7 +170,7 @@ jobs:
168170
# sudo apt-get -y install ffmpeg libimage-exiftool-perl libmagickwand-dev
169171

170172
# - name: Setup PHP
171-
# uses: shivammathur/setup-php@2.15.0
173+
# uses: shivammathur/setup-php@2.32.0
172174
# with:
173175
# php-version: "latest"
174176
# coverage: xdebug

composer.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
"type": "library",
55
"license": "MIT",
66
"authors": [
7+
{
8+
"name": "LycheeOrg",
9+
"homepage": "https://lycheeorg.dev/",
10+
"role": "Maintainers"
11+
},
712
{
813
"name": "Tom Van Herreweghe",
914
"homepage": "http://theanalogguy.be",
10-
"role": "Developer"
15+
"role": "Creator"
1116
}
1217
],
1318
"repositories": [
@@ -28,16 +33,16 @@
2833
"Imagick"
2934
],
3035
"require": {
31-
"php": "^8.2",
36+
"php": "^8.3",
3237
"ext-fileinfo": "*",
3338
"fylax/forceutf8": "^3.0.3",
3439
"php-ffmpeg/php-ffmpeg": "^1.2",
35-
"thecodingmachine/safe": "^2.5"
40+
"thecodingmachine/safe": "^3.0"
3641
},
3742
"require-dev": {
3843
"friendsofphp/php-cs-fixer": "^3.51",
39-
"infection/infection": "^0.27.10",
40-
"lychee-org/phpstan-lychee": "^1.0.4",
44+
"infection/infection": "^0.29.14",
45+
"lychee-org/phpstan-lychee": "^2.0.0",
4146
"php-parallel-lint/php-parallel-lint": "^1.3.2",
4247
"phpmd/phpmd": "^2.15",
4348
"phpunit/phpunit": "^9.5.10",
@@ -76,7 +81,7 @@
7681
},
7782
"config": {
7883
"platform": {
79-
"php": "8.2"
84+
"php": "8.3"
8085
},
8186
"preferred-install": "dist",
8287
"sort-packages": true,

0 commit comments

Comments
 (0)