Update patches #1819
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: Run code style checks | |
| on: | |
| push: | |
| branches: [PHP-8.3] | |
| pull_request: | |
| branches: [PHP-8.3] | |
| jobs: | |
| check: | |
| name: Check code style | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 2 | |
| - name: Install CMake | |
| uses: lukka/get-cmake@latest | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - name: Install Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Install checking tools | |
| run: | | |
| pipx install codespell gersemi | |
| cargo install typos-cli --locked | |
| curl -OL https://github.com/petk/normalizator/releases/latest/download/normalizator.phar | |
| chmod +x normalizator.phar | |
| mv normalizator.phar /usr/local/bin/normalizator | |
| curl -OL https://github.com/petk/cmake-normalizer/releases/latest/download/normalizer.cmake | |
| chmod +x normalizer.cmake | |
| mv normalizer.cmake /usr/local/bin/normalizer.cmake | |
| - name: Run Codespell | |
| if: ${{ always() }} | |
| run: codespell | |
| - name: Run typos | |
| if: ${{ always() }} | |
| run: typos | |
| - name: Run gersemi | |
| if: ${{ always() }} | |
| run: gersemi --indent 2 --definitions . --diff --check . | |
| - name: Run normalizator.phar | |
| if: ${{ always() }} | |
| run: normalizator check --not php-src --not .git . | |
| - name: Run normalizer.cmake | |
| if: ${{ always() }} | |
| run: | | |
| normalizer.cmake -- \ | |
| --set normalize_indent_style=false \ | |
| --set normalize_cmake_minimum_required=4.3...4.4 \ | |
| -j | |
| - name: Run ShellCheck | |
| if: ${{ always() }} | |
| run: | | |
| docker run --rm -v "$PWD:/mnt" koalaman/shellcheck:stable bin/*.sh |