Skip to content

Commit

Permalink
Style linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonferens committed Oct 22, 2024
1 parent 673009d commit 2b05c3c
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/style-linting.yml
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

0 comments on commit 2b05c3c

Please sign in to comment.