Skip to content

Commit

Permalink
Merge pull request #2905 from pifou25/feat/validate_composer
Browse files Browse the repository at this point in the history
add workflow to validate composer dependencies
  • Loading branch information
zoic21 authored Jan 11, 2025
2 parents 0f5d172 + da9075f commit db0a7de
Show file tree
Hide file tree
Showing 6 changed files with 804 additions and 1,639 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/composer-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate Composer dependencies
# this workflows check composer dependency installation
# using the commited composer.lock
# validate on php7.4 and 8.2

on:
pull_request:
branches:
- alpha

jobs:
build-test:
runs-on: ubuntu-latest

# define every php version to test
strategy:
# do not stop at first fail
fail-fast: false
matrix:
php: [7.4, 8.2]

steps:
- uses: actions/checkout@v3

- name: Validate dependencies php${{ matrix.php }}
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php }}
command: validate
args: --no-check-publish
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Thumbs.db
.buildpath
.vscode
ui
composer.lock

test.php
core/config/common.config.php
Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
"symfony/expression-language": "5 - 7",
"pragmarx/google2fa-qrcode": "^3",
"bacon/bacon-qr-code": "2 - 3",
"influxdata/influxdb-php": "^3",
"psr/log": "^1.1"
"influxdata/influxdb-client-php": "^3",
"psr/log": "^1.1",
"php": ">=7.4"
},
"config": {
"allow-plugins": {
"php-http/discovery": true
},
"platform": {
"php": "7.4"
}
}
}
Loading

0 comments on commit db0a7de

Please sign in to comment.