Skip to content

Commit b20e6aa

Browse files
Merge pull request #90 from robbieaverill/test-multiple-php-versions
Test PHP 7.4 and 8.0 in GitHub Actions
2 parents 90002e5 + 4c8d7e1 commit b20e6aa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,24 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98

9+
strategy:
10+
matrix:
11+
php-versions: ['7.4', '8.0']
12+
13+
name: PHP ${{ matrix.php-versions }}
14+
1015
steps:
1116
- uses: actions/checkout@v2
1217

1318
- name: Set PHP version
1419
uses: shivammathur/setup-php@v2
1520
with:
16-
php-version: 8.0
21+
php-version: ${{ matrix.php-versions }}
22+
23+
- name: Check PHP version
24+
run: php -v
1725

1826
- name: Validate composer.json and composer.lock
1927
run: composer validate --strict

0 commit comments

Comments
 (0)