Skip to content

Commit

Permalink
Enhancement: Run builds with different versions of phpunit/phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed May 8, 2020
1 parent d376435 commit 5153475
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ jobs:
php-version:
- "7.4"

phpunit-version:
- "6.0.0"
- "7.0.0"

dependencies:
- "lowest"
- "locked"
Expand Down Expand Up @@ -97,6 +101,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"

- name: "Require phpunit/phpunit"
run: "composer require --dev phpunit/phpunit:^${{ matrix.phpunit-version }} --update-with-dependencies"

- name: "Install lowest dependencies with composer"
if: "matrix.dependencies == 'lowest'"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
Expand All @@ -112,6 +119,9 @@ jobs:
- name: "Show phpstan/phpstan version"
run: "vendor/bin/phpstan --version"

- name: "Show phpunit/phpunit version"
run: "vendor/bin/phpunit --version"

- name: "Create cache directory for phpstan/phpstan"
run: "mkdir -p .build/phpstan"

Expand Down

0 comments on commit 5153475

Please sign in to comment.