-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
673009d
commit 2b05c3c
Showing
1 changed file
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: style-linting | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
pint: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 5 | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [ 8.3 ] | ||
laravel: [ 11.* ] | ||
|
||
name: Laravel Pint | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: dependencies-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer install --no-interaction --no-suggest --dev | ||
composer dump | ||
- name: Execute tests | ||
run: composer pint-check | ||
|
||
larastan: | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 5 | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [ 8.3 ] | ||
laravel: [ 11.* ] | ||
|
||
name: Larastan | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.composer/cache/files | ||
key: dependencies-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer install --no-interaction --no-suggest --dev | ||
composer dump | ||
- name: Execute tests | ||
run: composer larastan |