Repository navigation
Use query lib #4336
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: "Linter" | |
| on: [ pull_request, workflow_dispatch ] | |
| jobs: | |
| lint: | |
| name: Linter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 2 | |
| - run: git checkout HEAD^2 | |
| if: github.event_name == 'pull_request' | |
| - name: Run Linter | |
| run: | | |
| container=$(docker create composer:2.8) | |
| docker cp "$container":/usr/bin/composer /tmp/composer | |
| docker rm "$container" | |
| docker run --rm -v $PWD:/app -v /tmp/composer:/usr/local/bin/composer:ro -w /app php:8.5.8-cli-alpine sh -c \ | |
| "composer install --profile --ignore-platform-reqs && \ | |
| composer lint" |