From b4c0fa542efc3ee786b5336c941c5e976a0aca63 Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Tue, 27 Jul 2021 13:20:21 +0300 Subject: [PATCH 1/2] Test on lowest and highest dependencies --- .github/workflows/php.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index eee1bfeb..133cec38 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -10,11 +10,25 @@ jobs: build: runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: - php-versions: ['7.2', '7.3', '7.4'] - name: Tests with PHP ${{ matrix.php-versions }} + php-version: + - "7.2" + - "7.3" + - "7.4" + dependencies: + - "lowest" + - "highest" + experimental: + - false + include: + - php-version: "8.0" + dependencies: "highest" + composer-options: "--ignore-platform-reqs" + experimental: true + name: Tests with PHP ${{ matrix.php-version }} and ${{ matrix.dependencies }} dependencies steps: - uses: actions/checkout@v2 @@ -22,24 +36,18 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-versions }} + php-version: ${{ matrix.php-version }} env: COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Validate composer run: composer validate - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 + - name: Composer install + uses: "ramsey/composer-install@v1" with: - path: vendor - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-interaction + dependency-versions: "${{ matrix.dependencies }}" + composer-options: "${{ matrix.composer-options }}" - name: Run unit tests suite run: vendor/bin/phpunit From 491f1cb62f4a0848611187ca3f35cafb91b3d867 Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Wed, 28 Jul 2021 22:59:50 +0300 Subject: [PATCH 2/2] Test on lowest and highest dependencies Remove experimental flag --- .github/workflows/php.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 133cec38..5a7cb023 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -10,7 +10,6 @@ jobs: build: runs-on: ubuntu-latest - continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: @@ -27,7 +26,6 @@ jobs: - php-version: "8.0" dependencies: "highest" composer-options: "--ignore-platform-reqs" - experimental: true name: Tests with PHP ${{ matrix.php-version }} and ${{ matrix.dependencies }} dependencies steps: