Skip to content

Commit

Permalink
downgrade composer/semver for brianium/paratest:4.0.0 compat
Browse files Browse the repository at this point in the history
should fix the php 7.2 CI build
  • Loading branch information
staabm committed Mar 18, 2024
1 parent eb63e2a commit e7c38fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/static-analysis.yml
Expand Up @@ -60,14 +60,18 @@ jobs:
shell: bash
run: "vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}"

- name: "Downgrade composer/semver for brianium/paratest:4.0.0 compatibility"
if: matrix.php-version == '7.2'
run: composer require composer/semver:^1.2 --update-with-dependencies --ignore-platform-reqs

- name: "Paratest patch"
if: matrix.php-version == '7.2'
run: composer config extra.patches.brianium/paratest --json --merge '["patches/paratest.patch"]'
shell: bash

- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.2'
run: "composer require --dev phpunit/phpunit:^8.5.31 brianium/paratest:^4.0 --update-with-dependencies --ignore-platform-reqs"
run: composer require --dev phpunit/phpunit:^8.5.31 brianium/paratest:^4.0 --update-with-dependencies --ignore-platform-reqs

- name: "PHPStan"
run: "make phpstan"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Expand Up @@ -191,12 +191,15 @@ jobs:
shell: bash
run: "vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}"

- name: "Downgrade composer/semver for brianium/paratest:4.0.0 compatibility"
run: composer require composer/semver:^1.2 --update-with-dependencies --ignore-platform-reqs

- name: "Paratest patch"
run: composer config extra.patches.brianium/paratest --json --merge '["patches/paratest.patch"]'
shell: bash

- name: "Downgrade PHPUnit"
run: "composer require --dev phpunit/phpunit:^8.5.31 brianium/paratest:^4.0 --update-with-dependencies --ignore-platform-reqs"
run: composer require --dev phpunit/phpunit:^8.5.31 brianium/paratest:^4.0 --update-with-dependencies --ignore-platform-reqs

- name: "Tests"
run: "make tests-coverage"

0 comments on commit e7c38fc

Please sign in to comment.