Skip to content

Disable testing on MacOS due to sudden problems with PHP (#644) #13

Disable testing on MacOS due to sudden problems with PHP (#644)

Disable testing on MacOS due to sudden problems with PHP (#644) #13

name: Exercise linting with PHPCS for PSR 12
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
test:
name: PHPCS Linting - ${{ github.event_name }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d
with:
php-version: '8.2'
extensions: gmp
tools: composer
- name: Install dependencies
shell: bash
run: |
curl -Lo bin/phpcs.phar https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
chmod +x bin/phpcs.phar
- name: Install composer packages
run: composer install
- name: Lint exercises
shell: bash
run: composer lint:check