Skip to content

Commit 169fb07

Browse files
committed
Ensure that PHPUnit exists before running PHPStan in GitHub Actions
1 parent e04ac94 commit 169fb07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/static-code-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ jobs:
1919
- name: Install Composer dependencies
2020
uses: ramsey/composer-install@v2
2121

22+
# PHPUnit Bridge won't install a version of PHPUnit by default, but this will trick
23+
# it into doing so.
24+
- name: Install PHPUnit
25+
run: composer test -- --version
26+
2227
- name: Run PHPStan
2328
run: composer static-analysis

0 commit comments

Comments
 (0)