Skip to content

Commit 718f966

Browse files
committed
Merge branch 'main' into satalaondrej/main
2 parents 390ab18 + e28c983 commit 718f966

File tree

2 files changed

+23
-30
lines changed

2 files changed

+23
-30
lines changed

.github/workflows/unit-tests.yml

+21-28
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,44 @@
1-
name: "PHPUnit tests"
1+
name: Tests
22

33
on:
44
pull_request:
55
push:
66

77
jobs:
8-
phpunit:
9-
name: "PHPUnit tests"
10-
11-
runs-on: ${{ matrix.operating-system }}
12-
8+
tests:
9+
name: Tests PHP ${{ matrix.php }}
10+
runs-on: ${{ matrix.os }}
1311
strategy:
12+
fail-fast: false
1413
matrix:
15-
php-version:
16-
- "7.2"
17-
- "7.3"
18-
- "7.4"
19-
- "8.0"
20-
- "8.1"
21-
operating-system:
22-
- "ubuntu-latest"
14+
os: [ubuntu-latest]
15+
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
2316

2417
steps:
25-
- name: "Checkout"
26-
uses: "actions/checkout@v2"
18+
- name: Checkout
19+
uses: actions/checkout@v4
2720
with:
2821
fetch-depth: 0
2922

30-
- name: "Install PHP"
31-
uses: "shivammathur/setup-php@v2"
23+
- name: Install PHP
24+
uses: shivammathur/setup-php@v2
3225
with:
33-
coverage: "pcov"
34-
php-version: "${{ matrix.php-version }}"
26+
coverage: pcov
27+
php-version: ${{ matrix.php }}
3528
ini-values: memory_limit=-1
3629
tools: composer:v2, cs2pr
3730

38-
- name: "Cache dependencies"
39-
uses: "actions/cache@v2"
31+
- name: Cache dependencies
32+
uses: actions/cache@v3
4033
with:
4134
path: |
4235
~/.composer/cache
4336
vendor
44-
key: "php-${{ matrix.php-version }}"
45-
restore-keys: "php-${{ matrix.php-version }}"
37+
key: php-${{ matrix.php }}
38+
restore-keys: php-${{ matrix.php }}
4639

47-
- name: "Install highest dependencies"
48-
run: "composer update --no-interaction --no-progress --no-suggest"
40+
- name: Install highest dependencies
41+
run: composer update --no-interaction --no-progress --no-suggest
4942

50-
- name: "Tests"
51-
run: "vendor/bin/phpunit"
43+
- name: Tests
44+
run: vendor/bin/phpunit

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
},
2020
"require": {
2121
"php": "^7.2 || ^8.0",
22-
"psr/http-message": "^1.0",
22+
"psr/http-message": "^1.0 || ^2.0",
2323
"psr/http-server-middleware": "^1.0"
2424
},
2525
"require-dev": {
26-
"laminas/laminas-diactoros": "^2.4",
26+
"laminas/laminas-diactoros": "^2.4 || ^3.0",
2727
"phpunit/phpunit": "^8.5.8 || ^9.4",
2828
"squizlabs/php_codesniffer": "^3.2"
2929
},

0 commit comments

Comments
 (0)