Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
* 1.x:
  Fix PHP Parse errors in tests.
  • Loading branch information
fabpot committed Feb 9, 2025
2 parents 11d923a + 1aabc8e commit c146113
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,19 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v4

- name: "Install PHP with extensions"
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: ${{ matrix.php }}
tools: composer:${{ matrix.composer }}

- if: matrix.php == '8.0'
name: "Lint PHP files"
run: |
find src/ -name '*.php' | xargs -n1 php -l
find tests/ -name '*.php' | xargs -n1 php -l
- name: "Validate composer.json"
run: "composer validate --strict --no-check-lock"

Expand All @@ -55,7 +61,3 @@ jobs:
run: vendor/bin/simple-phpunit install

- run: vendor/bin/simple-phpunit

- if: matrix.php == '8.0'
name: "Lint PHP files"
run: find src/ -name '*.php' | xargs -n1 php -l

0 comments on commit c146113

Please sign in to comment.