diff --git a/.github/workflows/setup_test.yml b/.github/workflows/setup_test.yml index 983c9c2..29e0f00 100644 --- a/.github/workflows/setup_test.yml +++ b/.github/workflows/setup_test.yml @@ -1,21 +1,28 @@ -name: Setup and test +name: Setup & test on: [ push, pull_request ] jobs: tests: - name: Composer setup and tests - runs-on: ubuntu-latest + name: Composer P${{ matrix.php }} - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest ] + php: [ '8.1', '8.2' ] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.2' + php-version: ${{ matrix.php }} + - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Install dependencies run: | composer install --no-interaction --no-progress --no-suggest + - name: Run tests run: | composer validate --strict