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 13, 2024
1 parent bb37602 commit 18ec726
Showing 1 changed file with 45 additions and 13 deletions.
58 changes: 45 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,73 @@ on:

jobs:
pest:
name: Tests (Pest) L${{ matrix.laravel }}


runs-on: ubuntu-latest
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
laravel: [8, 9, '11']

os: [ubuntu-latest]
laravel: [8, 9, 10, 11]
php: [8.1, 8.2, 8.3]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: ^8.20
- laravel: 11.*
testbench: ^9.0
exclude:
- php: 8.1
laravel: 11.*

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

- 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)


runs-on: ubuntu-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
laravel: [8, 9, 10, 11]
php: [8.1, 8.2, 8.3]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: ^8.20
- laravel: 11.*
testbench: ^9.0
exclude:
- php: 8.1
laravel: 11.*

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

- 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 18ec726

Please sign in to comment.