Skip to content

Commit 5a38512

Browse files
committed
Add workflow to validate composer.json
1 parent ded0456 commit 5a38512

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Check validity of composer.json"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "v*.*"
7+
- "master"
8+
- "feature/*"
9+
push:
10+
branches:
11+
- "v*.*"
12+
- "master"
13+
- "feature/*"
14+
15+
env:
16+
PHP_VERSION: "8.2"
17+
18+
jobs:
19+
composer-validate:
20+
name: "Check validity of composer.json"
21+
runs-on: "ubuntu-24.04"
22+
23+
steps:
24+
- name: "Checkout"
25+
uses: "actions/checkout@v4"
26+
with:
27+
submodules: true
28+
29+
- name: "Install PHP"
30+
uses: "shivammathur/setup-php@v2"
31+
with:
32+
php-version: "${{ env.PHP_VERSION }}"
33+
34+
- name: "Run composer validate"
35+
run: "composer validate --strict"

0 commit comments

Comments
 (0)