From 32b6cc355e1809575b11516cad86c93095570a84 Mon Sep 17 00:00:00 2001 From: pifou25 Date: Sat, 8 Jun 2024 18:50:36 +0200 Subject: [PATCH] add workflow for composer validation --- .github/workflows/composer-validate.yml | 31 +++++++++++++++++++++++++ .gitignore | 2 -- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/composer-validate.yml diff --git a/.github/workflows/composer-validate.yml b/.github/workflows/composer-validate.yml new file mode 100644 index 0000000000..1476284866 --- /dev/null +++ b/.github/workflows/composer-validate.yml @@ -0,0 +1,31 @@ +name: Validate Compoer dependencies +# this workflows check composer dependency installation +# using the commited composer.lock +# validate on php7.3 and 8.2 + +on: + pull_request: + branches: + - alpha + - beta + - V4-stable + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Validate dependencies php7.3 + uses: php-actions/composer@v6 + with: + php_version: '7.3' + command: validate + + - name: Validate dependencies php8.2 + uses: php-actions/composer@v6 + with: + php_version: '8.2' + command: validate + \ No newline at end of file diff --git a/.gitignore b/.gitignore index b091cf178c..46e1a7b2ff 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ Thumbs.db .buildpath .vscode ui -composer.lock test.php core/config/common.config.php @@ -45,4 +44,3 @@ tmp/* !tmp/.htaccess !.htaccess -.github/