Skip to content

Commit

Permalink
Add PHP 8.3 support in GitHub Actions workflow
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Dropelikeit committed Mar 9, 2024
1 parent 0dcc1ff commit 9d56410
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,36 @@ jobs:

- name: "Run Psalm"
run: "composer psalm"

php83:
name: PHP 8.3
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 2

- name: "Install PHP 8.3"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"

- name: "Cache composer packages"
uses: "actions/cache@v3"
with:
path: "~/.composer/cache"
key: "php-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-composer-locked-"

- name: "Install dependencies with composer"
run: "composer install --no-interaction"

- name: "Run PHPUnit Tests"
run: "composer test"

- name: "Run PHP CS Check"
run: "PHP_CS_FIXER_IGNORE_ENV=1 composer cs-check"

- name: "Run Psalm"
run: "composer psalm"

0 comments on commit 9d56410

Please sign in to comment.