Skip to content

Commit

Permalink
Add workflow to validate composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Sep 9, 2024
1 parent 0cfecc2 commit aca7e8e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/composer-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Check validity of composer.json"

on:
pull_request:
branches:
- "v*.*"
- "master"
- "feature/*"
push:
branches:
- "v*.*"
- "master"
- "feature/*"

env:
PHP_VERSION: "8.2"

jobs:
composer-validate:
name: "Check validity of composer.json"
runs-on: "ubuntu-24.04"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
submodules: true

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ env.PHP_VERSION }}"

- name: "Run composer validate"
run: "composer validate --strict"

0 comments on commit aca7e8e

Please sign in to comment.