Skip to content

Commit

Permalink
Test multiple PHP versions with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kitar committed Jan 22, 2021
1 parent 316eb2f commit b5323a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,24 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: ['7.3', '7.4', '8.0']

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer update --prefer-dist --no-progress

- name: Run test suite
run: composer run-script ci-test
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ci-test": "vendor/bin/phpunit --coverage-clover coverage.xml"
},
"require": {
"php": "^7.2",
"php": "^7.3|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"illuminate/container": "^6.0|^7.0|^8.0",
"illuminate/database": "^6.0|^7.0|^8.0",
Expand Down

0 comments on commit b5323a3

Please sign in to comment.