From f661c66847e1360078c3a8a9fa0ec3745357a446 Mon Sep 17 00:00:00 2001 From: Beno!t POLASZEK Date: Wed, 13 Mar 2024 15:06:05 +0100 Subject: [PATCH] ci: add PHP versions --- .github/workflows/app.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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