From ab443fed8cbd5d695696edc0d3ea38588725a099 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 16 Sep 2024 13:58:51 -0300 Subject: [PATCH] Update phpunit.yml I suggest to use this approach: https://github.com/marketplace/actions/composer-php-versions-in-range --- .github/workflows/phpunit.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 5c0b2ec..af48627 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -10,16 +10,22 @@ on: - master jobs: + supported-versions-matrix: + name: Supported Versions Matrix + runs-on: ubuntu-latest + outputs: + extensions: ${{ steps.supported-versions-matrix.outputs.extensions }} + version: ${{ steps.supported-versions-matrix.outputs.version }} + steps: + - uses: actions/checkout@v3 + - id: supported-versions-matrix + uses: WyriHaximus/github-action-composer-php-versions-in-range@v1 Build: runs-on: 'ubuntu-latest' container: 'byjg/php:${{ matrix.php-version }}-cli' strategy: matrix: - php-version: - - "8.3" - - "8.2" - - "8.1" - + php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }} steps: - uses: actions/checkout@v4 - name: Setup test