Skip to content

Commit

Permalink
add PHP 8.0 to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Eelen committed Mar 21, 2024
1 parent ef6e579 commit 59e0715
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4']
php-versions: ['7.4', '8.0']
name: PHP ${{ matrix.php-versions }}
steps:
- name: πŸ“€ Checkout project
Expand Down Expand Up @@ -97,5 +97,63 @@ jobs:
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --no-progress --no-suggest

- name: πŸ” Run static analysis
run: composer phpstan

cs-php80:
runs-on: ubuntu-latest
name: Code style (PHP 8.0)
steps:
- name: πŸ“€ Checkout project
uses: actions/checkout@v2

- name: 🐘 Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
tools: composer

- name: πŸ“© Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: πŸ“¦ Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --no-progress --no-suggest

- name: ✨ Run code style check
run: composer cs

phpstan-php80:
runs-on: ubuntu-latest
name: Static analysis (PHP 8.0)
steps:
- name: πŸ“€ Checkout project
uses: actions/checkout@v2

- name: 🐘 Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
tools: composer

- name: πŸ“© Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: πŸ“¦ Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --no-progress --no-suggest

- name: πŸ” Run static analysis
run: composer phpstan

0 comments on commit 59e0715

Please sign in to comment.