Skip to content

Commit d29a086

Browse files
peter279kicanhazstring
authored andcommitted
Add PHP 8.1 in GitHub action
1 parent 1d3bcd8 commit d29a086

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ jobs:
6666
strategy:
6767
fail-fast: false
6868
matrix:
69-
php-version: ["7.3", "7.4", "8.0"]
69+
php-version: ["7.3", "7.4", "8.0", "8.1"]
7070
operating-system: ["ubuntu-latest"]
7171
experimental: [false]
7272
include:
7373
- php: "8.0"
7474
composer-options: "--ignore-platform-req=php"
75+
- php: "8.1"
76+
composer-options: "--ignore-platform-req=php"
7577

7678
steps:
7779
- name: Checkout
@@ -87,4 +89,4 @@ jobs:
8789
run: composer install --no-progress --prefer-dist --optimize-autoloader ${{ matrix.composer-options }}
8890

8991
- name: Execute tests
90-
run: vendor/bin/phpunit --colors=always --coverage-text
92+
run: vendor/bin/phpunit --colors=always --coverage-text

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,10 @@
3939
"analyse": "vendor/bin/phpstan analyse --no-progress",
4040
"test": "vendor/bin/phpunit",
4141
"cs": "vendor/bin/phpcs"
42+
},
43+
"config": {
44+
"allow-plugins": {
45+
"dealerdirect/phpcodesniffer-composer-installer": true
46+
}
4247
}
4348
}

0 commit comments

Comments
 (0)