Skip to content

Commit 912739b

Browse files
setup correct php version
1 parent 48bef2c commit 912739b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/unit-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,22 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21+
22+
# Setup the correct PHP version globally
23+
- name: Set up PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
2128
- name: Cache Composer dependencies
2229
uses: actions/cache@v4
2330
with:
2431
path: /tmp/composer-cache
2532
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
33+
2634
- name: Install dependencies
2735
run: composer install
36+
2837
- uses: php-actions/phpunit@v4
2938
with:
3039
configuration: phpunit.xml.dist

0 commit comments

Comments
 (0)