Skip to content

Commit

Permalink
feat: add PHP 8.3 to ci tests (#14)
Browse files Browse the repository at this point in the history
* feat: add PHP 8.3 to ci tests

* feat: add PHP 8.3 to ci tests
  • Loading branch information
ricklambrechts authored Jul 3, 2023
1 parent b3a6c25 commit 3485954
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ jobs:
php: [ 8.1, 8.2 ]
laravel: [ 8.*, 9.*, 10.* ]
stability: [ prefer-stable ]
experimental: [ false ]
include:
- laravel: 8.*
testbench: 6.*
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
exclude:
- laravel: 10.*
php: 8.0
- php: 8.3
laravel: 10.*
testbench: 8.*
stability: prefer-stable
experimental: true

name: PHP ${{ matrix.php }} - L${{ matrix.laravel }}
steps:
Expand All @@ -38,10 +41,17 @@ jobs:
php-version: ${{ matrix.php }}

- name: Install dependencies
if: "${{ matrix.experimental == false }}"
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Install dependencies (experimental)
if: "${{ matrix.experimental == true }}"
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev --ignore-platform-reqs
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

Expand All @@ -55,6 +65,7 @@ jobs:
run: vendor/bin/phpstan analyse

- name: Static analysis with Psalm
if: "${{ matrix.experimental == false }}"
run: vendor/bin/psalm

- name: Coding style PSR12 Check
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ parameters:
level: 8
excludePaths:
- src/BaseOpenIDConnectClient.php
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon

0 comments on commit 3485954

Please sign in to comment.