Skip to content

Commit b5323a3

Browse files
committed
Test multiple PHP versions with GitHub Actions
1 parent 316eb2f commit b5323a3

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/php.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,24 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99

10+
strategy:
11+
matrix:
12+
php-version: ['7.3', '7.4', '8.0']
13+
1014
steps:
11-
- uses: actions/checkout@v2
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup PHP ${{ matrix.php-version }}
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-version }}
1222

1323
- name: Validate composer.json and composer.lock
1424
run: composer validate
1525

1626
- name: Install dependencies
17-
run: composer install --prefer-dist --no-progress --no-suggest
27+
run: composer update --prefer-dist --no-progress
1828

1929
- name: Run test suite
2030
run: composer run-script ci-test

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"ci-test": "vendor/bin/phpunit --coverage-clover coverage.xml"
2121
},
2222
"require": {
23-
"php": "^7.2",
23+
"php": "^7.3|^8.0",
2424
"illuminate/support": "^6.0|^7.0|^8.0",
2525
"illuminate/container": "^6.0|^7.0|^8.0",
2626
"illuminate/database": "^6.0|^7.0|^8.0",

0 commit comments

Comments
 (0)