From f3a6297464da33472822523afbfa57b3cc9a9bd5 Mon Sep 17 00:00:00 2001 From: Matthew Baggett <matthew@baggett.me> Date: Wed, 31 Jul 2024 12:01:25 +0200 Subject: [PATCH] fix linting --- .github/workflows/test.yml | 2 +- .trunk/trunk.yaml | 4 ++++ README.md | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9de20a..c491209 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index f88fc1f..c4a4939 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -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: diff --git a/README.md b/README.md index 16e0494..42c0bc7 100644 --- a/README.md +++ b/README.md @@ -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: `.`. - `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.