Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ on:
jobs:
cs:
name: 'Check coding style'
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-latest'

steps:
- name: 'Checkout current revision'
uses: 'actions/checkout@v3'
uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.2'
php-version: '8.3'
tools: 'composer'
coverage: 'none'

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

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

stan:
name: 'Static code analyzer'
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-latest'
continue-on-error: true

steps:
- name: 'Checkout current revision'
uses: 'actions/checkout@v3'
uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.2'
php-version: '8.3'
tools: 'composer'
coverage: 'none'

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

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

strategy:
fail-fast: false
matrix:
php:
- '8.2'
- '8.3'
- '8.4'

env:
PHP_VERSION: '${{ matrix.php }}'

steps:
- name: 'Checkout current revision'
uses: 'actions/checkout@v3'
uses: 'actions/checkout@v4'

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

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

- name: 'Export coverage results'
uses: 'codecov/codecov-action@v3'
uses: 'codecov/codecov-action@v4'
with:
file: './clover.xml'
env_vars: PHP_VERSION

- name: 'Archive code coverage results'
uses: 'actions/upload-artifact@v3'
uses: 'actions/upload-artifact@v4'
with:
name: 'PHP ${{ matrix.php }}'
path: 'clover.xml'

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

steps:
- name: 'Checkout current revision'
uses: 'actions/checkout@v3'
uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.2'
php-version: '8.3'
tools: 'composer'

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

- name: 'Share Composer cache across runs'
uses: 'actions/cache@v3'
uses: 'actions/cache@v4'
with:
path: '${{ steps.cachedir.outputs.path }}'
key: "composer-lowest-${{ hashFiles('**/composer.json') }}"
Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
}
],
"require": {
"php": "~8.1",
"guzzlehttp/promises": "^1.5",
"psr/http-message": "^1.0",
"guzzlehttp/psr7": "^2.2",
"webmozart/assert": "^1.10",
"aws/aws-sdk-php": "^3.222"
"php": "^8.3",
"guzzlehttp/promises": "^2.2",
"psr/http-message": "^2.0",
"guzzlehttp/psr7": "^2.7",
"webmozart/assert": "^1.11",
"aws/aws-sdk-php": "^3.352"
},
"require-dev": {
"phpunit/phpunit": "^11.2",
"phpstan/phpstan": "^1.11",
"cakephp/cakephp-codesniffer": "^5.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-webmozart-assert": "^1.2",
"phpstan/phpstan-phpunit": "^1.4"
"phpunit/phpunit": "^12.3",
"phpstan/phpstan": "^2.1",
"cakephp/cakephp-codesniffer": "^5.2",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpstan/phpstan-phpunit": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading