Skip to content

Commit ce2a262

Browse files
authored
Merge pull request #137 from chialab/chore/update-dependencies
chore: update dependencies
2 parents 58d6d9b + 94e655b commit ce2a262

File tree

13 files changed

+638
-625
lines changed

13 files changed

+638
-625
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ on:
1313
jobs:
1414
cs:
1515
name: 'Check coding style'
16-
runs-on: 'ubuntu-20.04'
16+
runs-on: 'ubuntu-latest'
1717

1818
steps:
1919
- name: 'Checkout current revision'
20-
uses: 'actions/checkout@v3'
20+
uses: 'actions/checkout@v4'
2121

2222
- name: 'Setup PHP'
2323
uses: 'shivammathur/setup-php@v2'
2424
with:
25-
php-version: '8.2'
25+
php-version: '8.3'
2626
tools: 'composer'
2727
coverage: 'none'
2828

@@ -31,7 +31,7 @@ jobs:
3131
run: 'echo "::set-output name=path::$(composer global config cache-dir)"'
3232

3333
- name: 'Share Composer cache across runs'
34-
uses: 'actions/cache@v3'
34+
uses: 'actions/cache@v4'
3535
with:
3636
path: '${{ steps.cachedir.outputs.path }}'
3737
key: "composer-${{ github.job }}-${{ hashFiles('**/composer.json') }}"
@@ -47,17 +47,17 @@ jobs:
4747

4848
stan:
4949
name: 'Static code analyzer'
50-
runs-on: 'ubuntu-20.04'
50+
runs-on: 'ubuntu-latest'
5151
continue-on-error: true
5252

5353
steps:
5454
- name: 'Checkout current revision'
55-
uses: 'actions/checkout@v3'
55+
uses: 'actions/checkout@v4'
5656

5757
- name: 'Setup PHP'
5858
uses: 'shivammathur/setup-php@v2'
5959
with:
60-
php-version: '8.2'
60+
php-version: '8.3'
6161
tools: 'composer'
6262
coverage: 'none'
6363

@@ -66,7 +66,7 @@ jobs:
6666
run: 'echo "::set-output name=path::$(composer global config cache-dir)"'
6767

6868
- name: 'Share Composer cache across runs'
69-
uses: 'actions/cache@v3'
69+
uses: 'actions/cache@v4'
7070
with:
7171
path: '${{ steps.cachedir.outputs.path }}'
7272
key: "composer-${{ github.job }}-${{ hashFiles('**/composer.json') }}"
@@ -83,20 +83,21 @@ jobs:
8383
unit:
8484
name: 'Run unit tests'
8585
if: "!contains(github.event.commits[0].message, '[skip ci]') && !contains(github.event.commits[0].message, '[ci skip]')"
86-
runs-on: 'ubuntu-20.04'
86+
runs-on: 'ubuntu-latest'
8787

8888
strategy:
8989
fail-fast: false
9090
matrix:
9191
php:
92-
- '8.2'
92+
- '8.3'
93+
- '8.4'
9394

9495
env:
9596
PHP_VERSION: '${{ matrix.php }}'
9697

9798
steps:
9899
- name: 'Checkout current revision'
99-
uses: 'actions/checkout@v3'
100+
uses: 'actions/checkout@v4'
100101

101102
- name: 'Setup PHP'
102103
uses: 'shivammathur/setup-php@v2'
@@ -110,7 +111,7 @@ jobs:
110111
run: 'echo "::set-output name=path::$(composer global config cache-dir)"'
111112

112113
- name: 'Share Composer cache across runs'
113-
uses: 'actions/cache@v3'
114+
uses: 'actions/cache@v4'
114115
with:
115116
path: '${{ steps.cachedir.outputs.path }}'
116117
key: "composer-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}"
@@ -128,38 +129,38 @@ jobs:
128129
run: 'composer run unit -- --coverage-clover=clover.xml'
129130

130131
- name: 'Export coverage results'
131-
uses: 'codecov/codecov-action@v3'
132+
uses: 'codecov/codecov-action@v4'
132133
with:
133134
file: './clover.xml'
134135
env_vars: PHP_VERSION
135136

136137
- name: 'Archive code coverage results'
137-
uses: 'actions/upload-artifact@v3'
138+
uses: 'actions/upload-artifact@v4'
138139
with:
139140
name: 'PHP ${{ matrix.php }}'
140141
path: 'clover.xml'
141142

142143
unit-lowest:
143144
name: 'Run unit tests with lowest-matching dependencies versions'
144145
if: "!contains(github.event.commits[0].message, '[skip ci]') && !contains(github.event.commits[0].message, '[ci skip]')"
145-
runs-on: 'ubuntu-20.04'
146+
runs-on: 'ubuntu-latest'
146147

147148
steps:
148149
- name: 'Checkout current revision'
149-
uses: 'actions/checkout@v3'
150+
uses: 'actions/checkout@v4'
150151

151152
- name: 'Setup PHP'
152153
uses: 'shivammathur/setup-php@v2'
153154
with:
154-
php-version: '8.2'
155+
php-version: '8.3'
155156
tools: 'composer'
156157

157158
- name: 'Discover Composer cache directory'
158159
id: 'cachedir'
159160
run: 'echo "::set-output name=path::$(composer global config cache-dir)"'
160161

161162
- name: 'Share Composer cache across runs'
162-
uses: 'actions/cache@v3'
163+
uses: 'actions/cache@v4'
163164
with:
164165
path: '${{ steps.cachedir.outputs.path }}'
165166
key: "composer-lowest-${{ hashFiles('**/composer.json') }}"

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
}
1111
],
1212
"require": {
13-
"php": "~8.1",
14-
"guzzlehttp/promises": "^1.5",
15-
"psr/http-message": "^1.0",
16-
"guzzlehttp/psr7": "^2.2",
17-
"webmozart/assert": "^1.10",
18-
"aws/aws-sdk-php": "^3.222"
13+
"php": "^8.3",
14+
"guzzlehttp/promises": "^2.2",
15+
"psr/http-message": "^2.0",
16+
"guzzlehttp/psr7": "^2.7",
17+
"webmozart/assert": "^1.11",
18+
"aws/aws-sdk-php": "^3.352"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^11.2",
22-
"phpstan/phpstan": "^1.11",
23-
"cakephp/cakephp-codesniffer": "^5.1",
24-
"phpstan/extension-installer": "^1.1",
25-
"phpstan/phpstan-webmozart-assert": "^1.2",
26-
"phpstan/phpstan-phpunit": "^1.4"
21+
"phpunit/phpunit": "^12.3",
22+
"phpstan/phpstan": "^2.1",
23+
"cakephp/cakephp-codesniffer": "^5.2",
24+
"phpstan/extension-installer": "^1.4",
25+
"phpstan/phpstan-webmozart-assert": "^2.0",
26+
"phpstan/phpstan-phpunit": "^2.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

0 commit comments

Comments
 (0)