diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index a580649..f3d9959 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -10,6 +10,12 @@ jobs: code-style: name: Code Style & Static Analysis runs-on: ubuntu-20.04 + strategy: + matrix: + php: + - 8.1 + - 8.2 + - 8.3 steps: - name: Checkout uses: actions/checkout@v2 @@ -17,7 +23,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: ${{ matrix.php }} extensions: mbstring, pcntl - name: Validate composer.json and composer.lock @@ -35,6 +41,12 @@ jobs: unit-tests: name: Unit tests runs-on: ubuntu-20.04 + strategy: + matrix: + php: + - 8.1 + - 8.2 + - 8.3 steps: - name: Checkout uses: actions/checkout@v2 @@ -50,8 +62,6 @@ jobs: run: composer install --prefer-dist --no-progress - name: Run tests - env: - TRANSPORT_DSN: ${{ matrix.transport }} run: vendor/bin/pest --testsuite='Unit tests' --coverage --coverage-clover=coverage.xml - name: Upload coverage to Codecov @@ -75,6 +85,10 @@ jobs: - "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0" - "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0.1" - "redis://localhost?size=10000&trimInterval=0.5&pingInterval=0.1&readTimeout=2" + php: + - 8.1 + - 8.2 + - 8.3 steps: - name: Checkout uses: actions/checkout@v2 @@ -82,7 +96,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: ${{ matrix.php }} extensions: mbstring, pcntl, curl, zip coverage: pcov