Skip to content

Commit

Permalink
Play quality tests only on specific version of PHP and Symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Dec 2, 2021
1 parent c0d768a commit 8284556
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -47,6 +47,7 @@ jobs:
symfony: '5.4.*'
coverage: true
bootable: true
quality: true
fail-fast: false
steps:
- name: Checkout
Expand Down Expand Up @@ -82,26 +83,23 @@ jobs:
run: composer update --no-progress --ansi --prefer-stable ${{ matrix.dependency }}

- name: Bundle is bootable
if: ${{ matrix.bootable && github.event_name == 'push' }}
if: matrix.bootable && github.event_name == 'push'
env:
SKELETON_VERSION: ${{matrix.symfony}}
SKELETON_VERSION: ${{ matrix.symfony }}
run: |
composer create-project "symfony/skeleton:${SKELETON_VERSION}" flex
cd flex
composer config extra.symfony.allow-contrib true
composer req gheb/docusign-bundle:dev-${GITHUB_REF#refs/heads/}
- name: Run php-cs-fixer tests
if: matrix.quality
run: php-cs-fixer fix --diff --dry-run

- name: Run phpstan tests
if: matrix.dependency == '' && matrix.php == '7.4'
if: matrix.quality
run: vendor/bin/phpstan analyze

- name: Run phpstan tests lowest
if: matrix.dependency != '' && matrix.php == '7.4'
run: vendor/bin/phpstan analyze -c phpstan.neon.lowest.dist

- name: Prepare PHPUnit tests
env:
DOCUSIGN_RSA_PASSPHRASE: ${{ secrets.DOCUSIGN_RSA_PASSPHRASE }}
Expand Down
19 changes: 0 additions & 19 deletions phpstan.neon.lowest.dist

This file was deleted.

0 comments on commit 8284556

Please sign in to comment.