Repository navigation
Defer to the laranail org policy where the health files are silent #17
Workflow file for this run
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: Static analysis | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| pint: | |
| name: Pint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 | |
| with: | |
| php-version: '8.4' | |
| coverage: none | |
| - name: Resolve composer cache directory | |
| id: composer-cache | |
| shell: bash | |
| run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT" | |
| - name: Restore composer cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.json') }} | |
| restore-keys: composer-${{ runner.os }}-${{ matrix.php }}- | |
| - name: Drop cached laranail archives | |
| # laranail/* resolve through a single MOVING v0.1.0 tag, so composer's dist | |
| # cache is keyed on a name whose contents change underneath it. A restored | |
| # archive is then silently stale: the install reports success and unpacks | |
| # whatever was cached the first time. Everything else is immutable per | |
| # version and stays cached. | |
| # POSIX command via bash: Windows runners default to PowerShell, where this | |
| # would be a parse error rather than a no-op. | |
| shell: bash | |
| run: rm -rf "$(composer config cache-files-dir)/laranail" | |
| - run: composer update --prefer-dist --no-interaction | |
| # laranail-pint, not bare pint: it resolves the ONE shared config in | |
| # vendor/laranail/package-tools and errors if it is absent. Bare `pint` | |
| # silently falls back to its own defaults and exits 0, so this step was | |
| # reporting "clean" against a rule set no other package here uses. | |
| - run: vendor/bin/laranail-pint --test |