diff options
author | Davey Shafik <davey@php.net> | 2020-10-27 08:12:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 08:12:12 +0000 |
commit | 402fba2f07712105825d122b3c5cdeb99159572e (patch) | |
tree | 85ec86a179a19630a6ae7b1d3cea82085b47a4d9 | |
parent | 6a43c6a89737d2d2912cafc6e0b78ff59438c5f4 (diff) | |
download | php7-mysql-shim-402fba2f07712105825d122b3c5cdeb99159572e.zip php7-mysql-shim-402fba2f07712105825d122b3c5cdeb99159572e.tar.gz php7-mysql-shim-402fba2f07712105825d122b3c5cdeb99159572e.tar.bz2 |
Run linter on PHP 5.3 and 8.0
-rw-r--r-- | .github/workflows/linter.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml new file mode 100644 index 0000000..43fee07 --- /dev/null +++ b/.github/workflows/linter.yaml @@ -0,0 +1,23 @@ +name: Testing 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 |