Skip to content

Commit

Permalink
Merge pull request #90 from robbieaverill/test-multiple-php-versions
Browse files Browse the repository at this point in the history
Test PHP 7.4 and 8.0 in GitHub Actions
  • Loading branch information
robbieaverill authored Jan 18, 2023
2 parents 90002e5 + 4c8d7e1 commit b20e6aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.4', '8.0']

name: PHP ${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v2

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

- name: Check PHP version
run: php -v

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand Down

0 comments on commit b20e6aa

Please sign in to comment.