Skip to content

Commit 9d56410

Browse files
committed
Add PHP 8.3 support in GitHub Actions workflow
The continuous integration pipeline in GitHub Actions has been updated to include support for PHP 8.3. The changes include setting up PHP 8.3 environment, caching composer packages for faster builds, and running unit tests, style checks, and static analysis on code. Signed-off-by: Marcel Strahl <info@marcel-strahl.de>
1 parent 0dcc1ff commit 9d56410

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,36 @@ jobs:
7070

7171
- name: "Run Psalm"
7272
run: "composer psalm"
73+
74+
php83:
75+
name: PHP 8.3
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: "Checkout"
79+
uses: "actions/checkout@v3"
80+
with:
81+
fetch-depth: 2
82+
83+
- name: "Install PHP 8.3"
84+
uses: "shivammathur/setup-php@v2"
85+
with:
86+
php-version: "8.3"
87+
88+
- name: "Cache composer packages"
89+
uses: "actions/cache@v3"
90+
with:
91+
path: "~/.composer/cache"
92+
key: "php-composer-locked-${{ hashFiles('composer.lock') }}"
93+
restore-keys: "php-composer-locked-"
94+
95+
- name: "Install dependencies with composer"
96+
run: "composer install --no-interaction"
97+
98+
- name: "Run PHPUnit Tests"
99+
run: "composer test"
100+
101+
- name: "Run PHP CS Check"
102+
run: "PHP_CS_FIXER_IGNORE_ENV=1 composer cs-check"
103+
104+
- name: "Run Psalm"
105+
run: "composer psalm"

0 commit comments

Comments
 (0)