Skip to content

Bump laravel/pint from 1.18.1 to 1.18.2 (#296) #428

Bump laravel/pint from 1.18.1 to 1.18.2 (#296)

Bump laravel/pint from 1.18.1 to 1.18.2 (#296) #428

name: "Continuous Integration"
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: none
tools: composer
- name: Restore Composer dependencies
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install Composer dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction
- name: Run Composer normalized
run: composer normalize --dry-run
- name: Run Pint code sniffer
run: composer fix-cs -- --test
- name: Run unit tests
run: vendor/bin/phpunit --stop-on-failure --stop-on-error