ci(legacy): catch syntax errors on older php versions
This commit is contained in:
parent
5505222df6
commit
3f2f2cb50b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
Loading…
Reference in New Issue