ci(legacy): catch syntax errors on older php versions

This commit is contained in:
jo 2022-08-24 12:08:30 +02:00 committed by Kyle Robbertze
parent 5505222df6
commit 3f2f2cb50b
5 changed files with 13 additions and 2117 deletions

View File

@ -22,11 +22,20 @@ concurrency:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php-version: "7.2" # Bionic
- php-version: "7.3" # Buster
- php-version: "7.4" # Bullseye, Focal
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: ${{ matrix.php-version }}
- name: Lint
run: make lint
working-directory: legacy

1
legacy/.gitignore vendored
View File

@ -9,6 +9,7 @@
/tests/test_results.xml
# Tools
/tools/composer.lock
/tools/vendor/
.php-cs-fixer.cache

View File

@ -25,7 +25,7 @@ format: tools
.PHONY: lint
lint: tools
$(TOOLS)/bin/php-cs-fixer fix --dry-run --diff
$(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff
.PHONY: build
build:

View File

@ -1,5 +1,5 @@
{
"require": {
"friendsofphp/php-cs-fixer": "~3.8.0"
"friendsofphp/php-cs-fixer": ">=3.4.0 <3.9.0"
}
}

File diff suppressed because it is too large Load Diff