summaryrefslogtreecommitdiffstats
path: root/.github/workflows/linter.yaml
blob: 7d9a60581cc577b85f2840737e903bd03953e4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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