feat!: laravel 11 compatibility #44
Workflow file for this run
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
name: CS Test | |
on: push | |
jobs: | |
laravel-pint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch the last 2 commits instead of just 1. (Fetching just 1 commit would overwrite the whole history) | |
fetch-depth: 2 | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Fix code style with Laravel Pint | |
run: vendor/bin/pint | |
- name: Get last commit message | |
id: last-commit-message | |
run: | | |
echo "::set-output name=msg::$(git log -1 --pretty=%s)" | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: ${{ steps.last-commit-message.outputs.msg }} | |
commit_options: '--amend --no-edit' | |
push_options: '--force' | |
skip_fetch: true |