build(deps): bump laravel/sanctum from 4.0.6 to 4.0.7 in /app #15
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: Code Review | |
on: [push, pull_request] | |
jobs: | |
laravel-pint: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.3] | |
defaults: | |
run: | |
working-directory: ./app | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: json, dom, curl, libxml, mbstring | |
coverage: none | |
- name: Install Pint | |
run: composer global require laravel/pint | |
- name: Run Pint | |
run: pint --test | |
# Below adds the ability to for laravel pint to automatically commit the fixes | |
# Uncomment to auto fix and commit, or leave commented out to just fail | |
# - name: Get last commit message | |
# id: last-commit | |
# run: | | |
# echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT | |
# echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT | |
# - name: Commit linted files | |
# uses: stefanzweifel/git-auto-commit-action@v5 | |
# with: | |
# commit_author: ${{ steps.last-commit.outputs.author }} | |
# commit_message: ${{ steps.last-commit.outputs.message }} | |
# commit_options: '--amend --no-edit' | |
# push_options: '--force' | |
# skip_fetch: true |