fix linting

This commit is contained in:
Greyscale 2024-07-31 12:01:25 +02:00
parent 20ceab239c
commit f3a6297464
3 changed files with 8 additions and 4 deletions
.github/workflows
.trunk
README.md

View file

@ -49,7 +49,7 @@ jobs:
echo "Composer is not available"
exit 1
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
echo "PHP Version is not 7.4. Got $(php -r 'echo PHP_VERSION_ID;') instead of between 70400-70500"
exit 1

View file

@ -16,6 +16,10 @@ runtimes:
- python@3.10.8
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
ignore:
- linters: [markdownlint]
paths:
- LICENCE.md
disabled:
- git-diff-check
enabled:

View file

@ -5,15 +5,15 @@ Sets up a PHP project with GitHub Actions, including detecting PHP version and r
![Tests Status](https://img.shields.io/github/actions/workflow/status/benzine-framework/action-setup-php/test.yml?logo=github&label=Tests)
![QC Status](https://img.shields.io/github/actions/workflow/status/benzine-framework/action-setup-php/trunk.check.yml?logo=github&label=QC)
## Inputs:
## Inputs
- `working_directory`: The directory to run the PHP setup in. Default: `.`.
- `php_tools`: The PHP tools to install.
## Outputs:
## Outputs
- `php_version`: The PHP version that was detected.
## Exported Envs:
## Exported Envs
- `PHP_VERSION`: The PHP version that was detected.