Update docs #1268
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: Run code style checks | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
check: | |
name: Check code style | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.4 | |
tools: php-cs-fixer | |
- name: Install checking tools | |
run: | | |
pipx install codespell | |
pipx install gersemi | |
curl -OL https://github.com/petk/normalizator/releases/latest/download/normalizator.phar | |
chmod +x normalizator.phar | |
mv normalizator.phar /usr/local/bin/normalizator | |
- name: Run checks | |
run: ./bin/check-cmake.php | |
# TODO: Remove PHP_CS_FIXER_IGNORE_ENV once php-cs-fixer supports PHP 8.4. | |
- name: Run PHP CS Fixer | |
run: | | |
PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer check \ | |
--diff \ | |
--rules=@Symfony,@PER-CS \ | |
--using-cache=no \ | |
-- bin |