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