19b152ff9SGreg Roachname: Code style 29b152ff9SGreg Roach 39b152ff9SGreg Roachon: [push, pull_request] 49b152ff9SGreg Roach 59b152ff9SGreg Roachjobs: 69b152ff9SGreg Roach run: 7b408d467SGreg Roach if: ${{ !startsWith(github.event.head_commit.message, 'Translation:') }} 865420c9cSGreg Roach runs-on: ${{ matrix.operating-system }} 99b152ff9SGreg Roach name: PHP/PHTML/CSS 109b152ff9SGreg Roach 1165420c9cSGreg Roach strategy: 1265420c9cSGreg Roach matrix: 1365420c9cSGreg Roach operating-system: ['ubuntu-latest'] 14*7c7db574SGreg Roach php-version: ['8.1', '8.2', '8.3', '8.4'] 1565420c9cSGreg Roach 169b152ff9SGreg Roach steps: 1734ed513fSGreg Roach - uses: shivammathur/setup-php@master 1834ed513fSGreg Roach with: 1934ed513fSGreg Roach php-version: ${{ matrix.php-version }} 2034ed513fSGreg Roach 21*7c7db574SGreg Roach - uses: actions/checkout@v4 229b152ff9SGreg Roach 23b6017f99SGreg Roach - run: composer validate 24b6017f99SGreg Roach 25b6017f99SGreg Roach - run: composer global require squizlabs/php_codesniffer 269b152ff9SGreg Roach 279b152ff9SGreg Roach - name: PHP 283028bd71SGreg Roach run: ~/.composer/vendor/bin/phpcs --colors --standard=PSR12 --exclude=Generic.Files.LineLength --extensions=php index.php app tests 299b152ff9SGreg Roach 309b152ff9SGreg Roach - name: Style sheets 319b152ff9SGreg Roach run: ~/.composer/vendor/bin/phpcs --colors --extensions=css resources/css 32