fix linting
This commit is contained in:
parent
20ceab239c
commit
f3a6297464
3 changed files with 8 additions and 4 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -49,7 +49,7 @@ jobs:
|
||||||
echo "Composer is not available"
|
echo "Composer is not available"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# PHP Version is equal to 7.4
|
# PHP Version is equal to 7.4
|
||||||
if [ "$(php -r 'echo PHP_VERSION_ID;')" -gte 70400 && "$(php -r 'echo PHP_VERSION_ID;')" -lt 70500 ]; then
|
if [ "$(php -r 'echo PHP_VERSION_ID;')" -gte 70400 && "$(php -r 'echo PHP_VERSION_ID;')" -lt 70500 ]; then
|
||||||
echo "PHP Version is not 7.4. Got $(php -r 'echo PHP_VERSION_ID;') instead of between 70400-70500"
|
echo "PHP Version is not 7.4. Got $(php -r 'echo PHP_VERSION_ID;') instead of between 70400-70500"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -16,6 +16,10 @@ runtimes:
|
||||||
- python@3.10.8
|
- python@3.10.8
|
||||||
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
|
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
|
||||||
lint:
|
lint:
|
||||||
|
ignore:
|
||||||
|
- linters: [markdownlint]
|
||||||
|
paths:
|
||||||
|
- LICENCE.md
|
||||||
disabled:
|
disabled:
|
||||||
- git-diff-check
|
- git-diff-check
|
||||||
enabled:
|
enabled:
|
||||||
|
|
|
@ -5,15 +5,15 @@ Sets up a PHP project with GitHub Actions, including detecting PHP version and r
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## Inputs:
|
## Inputs
|
||||||
|
|
||||||
- `working_directory`: The directory to run the PHP setup in. Default: `.`.
|
- `working_directory`: The directory to run the PHP setup in. Default: `.`.
|
||||||
- `php_tools`: The PHP tools to install.
|
- `php_tools`: The PHP tools to install.
|
||||||
|
|
||||||
## Outputs:
|
## Outputs
|
||||||
|
|
||||||
- `php_version`: The PHP version that was detected.
|
- `php_version`: The PHP version that was detected.
|
||||||
|
|
||||||
## Exported Envs:
|
## Exported Envs
|
||||||
|
|
||||||
- `PHP_VERSION`: The PHP version that was detected.
|
- `PHP_VERSION`: The PHP version that was detected.
|
||||||
|
|
Loading…
Reference in a new issue