ci(legacy): catch syntax errors on older php versions
This commit is contained in:
parent
5505222df6
commit
3f2f2cb50b
|
@ -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
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
/tests/test_results.xml
|
||||
|
||||
# Tools
|
||||
/tools/composer.lock
|
||||
/tools/vendor/
|
||||
.php-cs-fixer.cache
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue