Add CI job to validate composer files #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Code tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
composer-validation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: | |
- '8.1' | |
- '8.2' | |
- '8.3' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: xml | |
- name: Run syntax check | |
run: ./scripts/cibuild.sh |