Skip to content

Commit f3e716d

Browse files
committed
Tests: Run on PHP 7.4, 8.1 and 8.1
1 parent d468577 commit f3e716d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
- name: Nette Tester
2121
run: composer tester
2222
php:
23-
- 7.3
24-
- 7.4
25-
- 8.0
23+
- "7.4"
24+
- "8.0"
25+
- "8.1"
2626

2727
name: ${{ matrix.actions.name }} on PHP ${{ matrix.php }}
2828
runs-on: ubuntu-latest
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
path: |
5454
${{ steps.composer-cache.outputs.dir }}
55-
key: ${{ runner.os }}-composer-data-${{ hashFiles('composer.json') }}
55+
key: ${{ runner.os }}-composer-data-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}
5656
restore-keys: |
5757
${{ runner.os }}-composer-data-
5858
@@ -61,11 +61,11 @@ jobs:
6161
with:
6262
path: |
6363
**/composer.lock
64-
key: ${{ runner.os }}-composer-lock-${{ hashFiles('composer.json') }}
64+
key: ${{ runner.os }}-composer-lock-${{ hashFiles('composer.json') }}-php-${{ matrix.php }}
6565

6666

6767
- name: Install Composer
6868
run: composer install --no-progress
6969

7070

71-
- run: ${{ matrix.actions.run }}
71+
- run: ${{ matrix.actions.run }}

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7.3.4",
18+
"php": ">=7.4",
1919
"nette/utils": "^3.0"
2020
},
2121
"autoload": {
@@ -37,8 +37,8 @@
3737
}
3838
},
3939
"require-dev": {
40-
"phpstan/phpstan": "^0.12.50",
41-
"nette/tester": "^2.3"
40+
"phpstan/phpstan": "^0.12.98",
41+
"nette/tester": "^2.4"
4242
},
4343
"scripts": {
4444
"phpstan": "phpstan analyze src --level 8",

0 commit comments

Comments
 (0)