Skip to content

Commit

Permalink
update php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Mar 30, 2024
1 parent 6ee2b72 commit ccc0303
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ jobs:
matrix:
operating-system: [ubuntu-latest]
php: [ '8.1', '8.2', '8.3' ]
symfony: [ '6.*', '7.*' ]
dep: [highest,lowest]
exclude:
- php: '8.1'
symfony: '7.*'

name: ${{ matrix.dep }} deps, PHP ${{ matrix.php }}, ${{ matrix.operating-system }}
name: Symfony ${{ matrix.symfony }}, ${{ matrix.dep }} deps, PHP ${{ matrix.php }}, ${{ matrix.operating-system }}

steps:
- uses: actions/checkout@v3
Expand All @@ -30,6 +34,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: intl
tools: flex

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand All @@ -48,16 +53,22 @@ jobs:
with:
dependency-versions: ${{ matrix.dep }}
composer-options: --prefer-dist --no-progress
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}

- name: Run psalm
run: vendor/bin/psalm
if: matrix.dep == 'highest'

- name: Run phpstan
run: vendor/bin/phpstan analyse
if: matrix.dep == 'highest'

- name: Lint container
run: tests/bin/console lint:container

- name: Validate monorepo
run: vendor/bin/monorepo-builder validate

- name: Run phpunit
run: |
vendor/bin/phpunit
export SYMFONY_DEPRECATIONS_HELPER='max[direct]=0'
vendor/bin/phpunit

0 comments on commit ccc0303

Please sign in to comment.