From 4c8d7e127a0c999daaf8f5e9fce259e266fa6b15 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 17 Jan 2023 17:22:07 -0800 Subject: [PATCH] Test PHP 7.4 and 8.0 in GitHub Actions --- .github/workflows/test.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebc4f57..0850fdf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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