Skip to content

Commit 2b4acc6

Browse files
Kocalondrejmirtes
authored andcommitted
fix(ci): downgrade mockery when downgrading phpunit because of conflicts
1 parent e0e52bf commit 2b4acc6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
- name: "Install dependencies"
3939
run: "composer install --no-interaction --no-progress --no-suggest"
4040

41-
- name: "Downgrade PHPUnit"
41+
- name: "Downgrade PHPUnit and Mockery"
4242
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
43-
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
43+
run: "composer require --dev phpunit/phpunit:^7.5.20 mockery/mockery:^1.3 --update-with-dependencies"
4444

4545
- name: "Lint"
4646
run: "make lint"
@@ -107,9 +107,9 @@ jobs:
107107
if: ${{ matrix.dependencies == 'highest' }}
108108
run: "composer update --no-interaction --no-progress --no-suggest"
109109

110-
- name: "Downgrade PHPUnit"
110+
- name: "Downgrade PHPUnit and Mockery"
111111
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
112-
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
112+
run: "composer require --dev phpunit/phpunit:^7.5.20 mockery/mockery:^1.3 --update-with-dependencies"
113113

114114
- name: "Tests"
115115
run: "make tests"
@@ -151,9 +151,9 @@ jobs:
151151
if: ${{ matrix.dependencies == 'highest' }}
152152
run: "composer update --no-interaction --no-progress --no-suggest"
153153

154-
- name: "Downgrade PHPUnit"
154+
- name: "Downgrade PHPUnit and Mockery"
155155
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
156-
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
156+
run: "composer require --dev phpunit/phpunit:^7.5.20 mockery/mockery:^1.3 --update-with-dependencies"
157157

158158
- name: "PHPStan"
159159
run: "make phpstan"

0 commit comments

Comments
 (0)