Query string prep #39
This file contains hidden or 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: "Lint" | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| PHP_VERSION: "8.2" | |
| jobs: | |
| phplint: | |
| name: phplint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Give the default GITHUB_TOKEN write permission to commit and push the | |
| # added or changed files to the repository. | |
| contents: write | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v4" | |
| - name: "Install PHP" | |
| uses: "shivammathur/setup-php@v2" | |
| with: | |
| coverage: "none" | |
| extensions: json, dom, curl, libxml, mbstring | |
| php-version: ${{ env.PHP_VERSION }} | |
| - name: "Install dependencies with Composer" | |
| uses: "ramsey/[email protected]" | |
| with: | |
| composer-options: "--no-suggest" | |
| - name: "Format the code" | |
| continue-on-error: true | |
| run: ./vendor/bin/pint --config ./pint.json | |
| - name: "Commit the changes" | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "apply pint formatting" |