Skip to content

Commit 65c6f82

Browse files
committed
Add composer validation workflow
1 parent 2dedc12 commit 65c6f82

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/composer.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Composer
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'composer.json'
8+
pull_request:
9+
paths:
10+
- 'composer.json'
11+
workflow_dispatch:
12+
13+
jobs:
14+
validate:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.2'
23+
tools: composer
24+
25+
- name: Validate composer.json
26+
run: composer validate --strict
27+
28+
- name: Check dependencies
29+
run: composer install --prefer-dist --no-progress --dry-run

0 commit comments

Comments
 (0)