Skip to content

Commit db0a7de

Browse files
authored
Merge pull request #2905 from pifou25/feat/validate_composer
add workflow to validate composer dependencies
2 parents 0f5d172 + da9075f commit db0a7de

File tree

6 files changed

+804
-1639
lines changed

6 files changed

+804
-1639
lines changed
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Validate Composer dependencies
2+
# this workflows check composer dependency installation
3+
# using the commited composer.lock
4+
# validate on php7.4 and 8.2
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- alpha
10+
11+
jobs:
12+
build-test:
13+
runs-on: ubuntu-latest
14+
15+
# define every php version to test
16+
strategy:
17+
# do not stop at first fail
18+
fail-fast: false
19+
matrix:
20+
php: [7.4, 8.2]
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Validate dependencies php${{ matrix.php }}
26+
uses: php-actions/composer@v6
27+
with:
28+
php_version: ${{ matrix.php }}
29+
command: validate
30+
args: --no-check-publish

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Thumbs.db
66
.buildpath
77
.vscode
88
ui
9-
composer.lock
109

1110
test.php
1211
core/config/common.config.php

composer.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
"symfony/expression-language": "5 - 7",
55
"pragmarx/google2fa-qrcode": "^3",
66
"bacon/bacon-qr-code": "2 - 3",
7-
"influxdata/influxdb-php": "^3",
8-
"psr/log": "^1.1"
7+
"influxdata/influxdb-client-php": "^3",
8+
"psr/log": "^1.1",
9+
"php": ">=7.4"
910
},
1011
"config": {
1112
"allow-plugins": {
1213
"php-http/discovery": true
14+
},
15+
"platform": {
16+
"php": "7.4"
1317
}
1418
}
1519
}

0 commit comments

Comments
 (0)