Skip to content

Commit

Permalink
.github/workflows/test.yaml: test on multiple php versions and add ph…
Browse files Browse the repository at this point in the history
…pstan
  • Loading branch information
zozlak committed Apr 22, 2024
1 parent 9e2efa4 commit 39300d1
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
name: test
on: push
jobs:
deploy:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.2, 8.3, 8.4]
steps:
- uses: actions/checkout@v4
- name: php
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
#extensions:
php-version: ${{ matrix.php }}
- name: composer
run: |
composer update
- name: test
run: |
vendor/bin/phpunit
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: composer
run: composer update
- name: phpstan
run: vendor/bin/phpstan analyse -l 8 src tests || true

0 comments on commit 39300d1

Please sign in to comment.