name: Linting php7-mysql-shim on: [push, pull_request] env: fail-fast: true jobs: linter: name: Linter (PHP ${{ matrix.php-versions }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: php-versions: ['5.3', '8.0'] steps: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php with: php-version: ${{ matrix.php-versions }} extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql coverage: xdebug #optional - name: Run Linter run: php -l lib/mysql.php