Skip to content

Commit 7f5983c

Browse files
committed
Validate composer files
1 parent a1af853 commit 7f5983c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/automated_testing.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,46 @@ on:
44
push:
55

66
jobs:
7+
8+
composer:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- php-version: '7.4'
16+
lock-version: '3.4'
17+
- php-version: '7.4'
18+
lock-version: '4.4'
19+
- php-version: '8.0'
20+
lock-version: '5.0'
21+
- php-version: '8.0'
22+
lock-version: '5.4'
23+
- php-version: '8.0'
24+
lock-version: '6.0'
25+
- php-version: '8.1'
26+
lock-version: '6.4'
27+
- php-version: '8.2'
28+
lock-version: '7.0'
29+
30+
steps:
31+
- uses: 'shivammathur/setup-php@v2'
32+
with:
33+
php-version: ${{ matrix.php-version }}
34+
tools: composer
35+
36+
- uses: actions/checkout@v3
37+
38+
- name: Set versions
39+
run: cp composer.${{ matrix.lock-version }}.lock composer.lock
40+
41+
- name: Install dependencies
42+
uses: ramsey/composer-install@v2
43+
44+
- name: Validate composer.json and composer.lock
45+
run: composer validate --strict
46+
747
phpunit:
848
runs-on: ubuntu-latest
949

0 commit comments

Comments
 (0)