Skip to content

Commit

Permalink
Add php 8.1 and 8.2 to build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Jun 17, 2022
1 parent ce10796 commit 1925770
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: vendor/bin/codecept run
env:
PHP_CS_FIXER_IGNORE_ENV: 1

0 comments on commit 1925770

Please sign in to comment.