diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 270c8d1..7144f3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,24 @@ name: PHPUnit -on: [push] +on: [push, pull_request] jobs: build: - + name: Run tests on ${{ matrix.php }} runs-on: ubuntu-latest + strategy: + matrix: + php: [ '7.4', '8.0', '8.1', '8.2' ] + steps: - - uses: actions/checkout@v1 + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} - name: Composer Install run: composer install