zanders-php-markdown/.github/workflows/ci.yml
Alexey Kopytko 546b80a136
Fix PHPStan issues and build on PHP 8.2 (#368)
Limit PHPStan to PHP 8.1
2022-09-04 21:33:36 -04:00

30 lines
798 B
YAML

name: CI
on:
pull_request: null
push:
branches:
- lib
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
name: Linting - PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: intl
- run: composer install --no-progress
# - run: composer codestyle
- run: composer phpstan
if: matrix.php == '8.1'
- run: composer tests