1name: PHP Code Style 2 3on: [push] 4 5jobs: 6 phpcs: 7 name: PHP CodeSniffer 8 runs-on: ubuntu-latest 9 steps: 10 - uses: actions/checkout@v1 11 12 - name: Setup PHP 13 uses: shivammathur/setup-php@7b8bf7af6a42e028cbcccf623bb8499b4d6edf02 14 with: 15 php-version: '7.4' 16 coverage: none 17 18 - name: Download PHPCS 19 run: wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar 20 21 - name: run PHP codesniffer 22 run: php phpcs.phar -v --standard=_test/phpcs.xml 23