Skip to content

Commit e6936ee

Browse files
authored
feat(remove 8.1 support): (#21)
BREAKING CHANGE: No more support for php 8.1 Signed-off-by: Marvin Naumann <1013829+nivseb@users.noreply.github.com>
1 parent c10cb19 commit e6936ee

3 files changed

Lines changed: 16 additions & 44 deletions

File tree

.github/workflows/analysis.yml

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,69 +11,43 @@ on:
1111

1212
jobs:
1313
static-analysis:
14-
name: "Rund static analysis with P${{ matrix.php }} and ${{ matrix.dependencies }} dependencies"
14+
name: "Run static analysis with P${{ matrix.php }} and ${{ matrix.dependency-version }} dependencies"
1515
runs-on: ubuntu-latest
1616
strategy:
1717
fail-fast: true
1818
matrix:
1919
php:
20-
- "8.1"
2120
- "8.2"
2221
- "8.3"
2322
- "8.4"
24-
dependencies:
25-
- "lowest"
26-
- "highest"
23+
dependency-version:
24+
- "prefer-lowest"
25+
- "prefer-stable"
2726
steps:
2827
- uses: "actions/checkout@v4"
2928
- uses: "shivammathur/setup-php@v2"
3029
with:
3130
php-version: "${{ matrix.php }}"
32-
- uses: "ramsey/composer-install@v3"
33-
with:
34-
dependency-versions: "${{ matrix.dependencies }}"
31+
- name: Install dependencies
32+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3533
- name: Run PHPStan
3634
run: ./vendor/bin/phpstan analyse --error-format=github --configuration="./dev/config/phpstan.neon"
3735

38-
insights:
39-
name: "Check insights with P${{ matrix.php }} and ${{ matrix.dependencies }} dependencies"
40-
runs-on: ubuntu-latest
41-
strategy:
42-
fail-fast: true
43-
matrix:
44-
php:
45-
- "8.3"
46-
dependencies:
47-
- "highest"
48-
steps:
49-
- uses: "actions/checkout@v4"
50-
- uses: "shivammathur/setup-php@v2"
51-
with:
52-
php-version: "${{ matrix.php }}"
53-
- uses: "ramsey/composer-install@v3"
54-
with:
55-
dependency-versions: "${{ matrix.dependencies }}"
56-
- name: Run PHPInsights
57-
run: ./vendor/bin/phpinsights --no-interaction --config-path="./dev/config/phpinsights.php" analyse
58-
5936
format:
60-
name: "Check format with P${{ matrix.php }} and ${{ matrix.dependencies }} dependencies"
37+
name: "Check format with P${{ matrix.php }} and ${{ matrix.dependency-version }} dependencies"
6138
runs-on: ubuntu-latest
6239
strategy:
6340
fail-fast: true
6441
matrix:
6542
php:
6643
- "8.3"
67-
dependencies:
68-
- "highest"
6944
steps:
7045
- uses: "actions/checkout@v4"
7146
- uses: "shivammathur/setup-php@v2"
7247
with:
7348
php-version: "${{ matrix.php }}"
74-
- uses: "ramsey/composer-install@v3"
75-
with:
76-
dependency-versions: "${{ matrix.dependencies }}"
49+
- name: Install dependencies
50+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
7751
- name: Run PHP-CS-Fixer
7852
run: ./vendor/bin/php-cs-fixer check --config="./dev/config/php-cs-fixer.php"
7953

.github/workflows/test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,26 @@ on:
1111

1212
jobs:
1313
test:
14-
name: "Testing with P${{ matrix.php }} and ${{ matrix.dependencies }} dependencies"
14+
name: "Testing with P${{ matrix.php }} and ${{ matrix.dependency-version }} dependencies"
1515
runs-on: ubuntu-latest
1616
strategy:
1717
fail-fast: true
1818
matrix:
1919
php:
20-
- "8.1"
2120
- "8.2"
2221
- "8.3"
2322
- "8.4"
24-
dependencies:
25-
- "lowest"
26-
- "highest"
23+
dependency-version:
24+
- "prefer-lowest"
25+
- "prefer-stable"
2726
steps:
2827
- uses: "actions/checkout@v4"
2928
- uses: "shivammathur/setup-php@v2"
3029
with:
3130
php-version: "${{ matrix.php }}"
3231
coverage: xdebug
33-
- uses: "ramsey/composer-install@v3"
34-
with:
35-
dependency-versions: "${{ matrix.dependencies }}"
32+
- name: Install dependencies
33+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3634
- name: Tests
3735
run: ./vendor/bin/pest --coverage --parallel
3836
- name: 'Upload Artifact'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"require": {
39-
"php": "^8.1",
39+
"php": "^8.2",
4040
"guzzlehttp/guzzle": "^7.8"
4141
},
4242
"scripts": {

0 commit comments

Comments
 (0)