Skip to content

Laravel 11.23.4 Shift #2153

Laravel 11.23.4 Shift

Laravel 11.23.4 Shift #2153

Workflow file for this run

name: CI
on: [push, pull_request_target]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: πŸ“€ Checkout project
uses: actions/checkout@v4
- name: πŸ“© Fetch vendor from cache
uses: actions/cache@v4
id: cache
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
- name: 🐘 Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: "8.3"
tools: composer
env:
update: true
- name: πŸ”’ Create .env file
run: cp .env.example .env
- name: πŸ“¦ Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: πŸ”‘ Generate a laravel key
run: php artisan key:generate
- name: βœ… Run PHPUnit tests
run: php artisan test
phpstan:
name: Static analysis
runs-on: ubuntu-latest
steps:
- name: πŸ“€ Checkout project
uses: actions/checkout@v4
- name: πŸ“© Fetch vendor from cache
uses: actions/cache@v4
id: cache
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
- name: 🐘 Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: "8.3"
tools: composer
env:
update: true
- name: πŸ“¦ Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: βœ… Run static analysis
run: vendor/bin/phpstan analyse
coding-standards:
name: Coding standards
runs-on: ubuntu-latest
steps:
- name: πŸ“€ Checkout project
uses: actions/checkout@v4
- name: πŸ“© Fetch vendor from cache
uses: actions/cache@v4
id: cache
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
- name: 🐘 Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: "8.3"
tools: composer
env:
update: true
- name: πŸ“¦ Install dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: βœ… Run Laravel Pint
run: vendor/bin/pint
- name: πŸ“₯ Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix coding standards issues