Skip to content

Commit

Permalink
Tweak CI to run tests on all supported PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-ogg committed Oct 1, 2023
1 parent 1abfde0 commit 64f0631
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ on: push
name: Test
jobs:
test:
name: PHP Linter
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]

steps:
- uses: actions/checkout@master

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Run PHP Lint
run: "find src/ -name '*.php' | xargs -n1 php -l"

Expand Down

0 comments on commit 64f0631

Please sign in to comment.