From 192577083fd5510dd09861670f6f7eebfe4c9da9 Mon Sep 17 00:00:00 2001 From: Daniel Jakob Date: Fri, 17 Jun 2022 12:23:14 +0200 Subject: [PATCH] Add php 8.1 and 8.2 to build actions --- .github/workflows/php.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index ff0f326..2f38b1a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -10,33 +10,38 @@ jobs: build: runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: os: ['ubuntu-latest'] - php-versions: [7.4, 8.0] + php: ['7.4', '8.0', '8.1', '8.2'] + continue-on-error: ${{ matrix.php == '8.2' }} steps: - uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-versions }} - extensions: soap + php-version: ${{ matrix.php }} - name: Validate composer.json and composer.lock run: composer validate - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v2 + - name: Install dependencies + if: ${{ matrix.php != '8.2' }} + uses: nick-invision/retry@v1 with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + timeout_minutes: 5 + max_attempts: 3 + command: composer update --no-interaction --no-progress - - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest + - name: Install Dependencies (ignore platform) + if: ${{ matrix.php == '8.2' }} + uses: nick-invision/retry@v1 + with: + timeout_minutes: 5 + max_attempts: 3 + command: composer update --no-interaction --no-progress --ignore-platform-req=php - name: Run test suite - run: vendor/bin/codecept run \ No newline at end of file + run: vendor/bin/codecept run + env: + PHP_CS_FIXER_IGNORE_ENV: 1