Skip to content

Commit

Permalink
update `ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lepikhinb committed Mar 18, 2024
1 parent 3348a74 commit 09ff1d0
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,61 @@ on:

jobs:
pest:
name: Tests (Pest) L${{ matrix.laravel }}
name: Pest (P${{ matrix.php }} - L${{ matrix.laravel }})
runs-on: ubuntu-latest
strategy:
matrix:
laravel: [9, 10, 11]
include:
- laravel: 9
php: "8.0"
- laravel: 10
php: "8.2"
- laravel: 11
php: "8.3"

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install composer dependencies
run: composer require "illuminate/support:^${{ matrix.laravel }}.0"

- name: Run tests
run: vendor/bin/pest

phpstan:
name: Static analysis (PHPStan)
name: PHPStan (P${{ matrix.php }} - L${{ matrix.laravel }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- laravel: 9
php: "8.0"
- laravel: 10
php: "8.2"
- laravel: 11
php: "8.3"

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install composer dependencies
run: composer install

- name: Run phpstan
run: vendor/bin/phpstan analyse

0 comments on commit 09ff1d0

Please sign in to comment.