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" 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

View file

@ -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:

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) ![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) ![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: `.`. - `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.