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: jobs:
lint: lint:
runs-on: ubuntu-latest 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2 - uses: shivammathur/setup-php@v2
with: with:
php-version: 7.4 php-version: ${{ matrix.php-version }}
- name: Lint - name: Lint
run: make lint run: make lint
working-directory: legacy working-directory: legacy

1
legacy/.gitignore vendored
View File

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

View File

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

View File

@ -1,5 +1,5 @@
{ {
"require": { "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