From fe5a91ce4ed1b4ad417a41c07b283ed8584f7396 Mon Sep 17 00:00:00 2001 From: mesilov Date: Sat, 17 Feb 2024 18:54:43 +0600 Subject: [PATCH] Update GitHub workflows for multi-OS testing Updated workflow configurations to support both Ubuntu and Windows OS. The changes cover PHPUnit tests, PHPStan, Vendor integration, and Integration tests by adding matrix-operating-system variables. These modifications also include updates in the supported PHP versions, and disabling the "fail-fast" strategy to ensure tests across all OS complete before reporting. Signed-off-by: mesilov --- .github/workflows/integration.yml | 10 +++++----- .github/workflows/phpstan.yml | 4 +++- .github/workflows/phpunit.yml | 6 ++++-- .github/workflows/vendor-check.yml | 6 +++--- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index bb8210c7..2a6b4634 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -9,19 +9,19 @@ on: env: COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }} - TEST2_ENV: 12345 jobs: tests: name: "Integration tests" - - runs-on: ubuntu-latest - + runs-on: ${{ matrix.operating-system }} strategy: + fail-fast: false matrix: php-version: - - "8.1" + - "8.2" + - "8.3" dependencies: [ highest ] + operating-system: [ ubuntu-latest, windows-latest ] steps: diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 70847366..64ea73b4 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -7,14 +7,16 @@ name: PHPStan checks jobs: static-analysis: name: "PHPStan" - runs-on: "ubuntu-latest" + runs-on: ${{ matrix.operating-system }} strategy: fail-fast: false matrix: php-version: + - "8.2" - "8.3" dependencies: [ highest ] + operating-system: [ ubuntu-latest, windows-latest ] steps: - name: "Checkout" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 14797cdc..00dc1d47 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -1,8 +1,8 @@ name: "PHPUnit tests" on: - - push - - pull_request + push: + pull_request: env: COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" @@ -14,8 +14,10 @@ jobs: runs-on: ${{ matrix.operating-system }} strategy: + fail-fast: false matrix: php-version: + - "8.2" - "8.3" dependencies: [ highest ] operating-system: [ ubuntu-latest, windows-latest ] diff --git a/.github/workflows/vendor-check.yml b/.github/workflows/vendor-check.yml index beaa80f5..74662014 100644 --- a/.github/workflows/vendor-check.yml +++ b/.github/workflows/vendor-check.yml @@ -8,20 +8,20 @@ on: env: COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK: ${{ secrets.BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK }} - TEST2_ENV: 12345 jobs: tests: name: "Vendor integration tests" - runs-on: ubuntu-latest + runs-on: ${{ matrix.operating-system }} strategy: matrix: php-version: - - "8.1" - "8.2" + - "8.3" dependencies: [ highest ] + operating-system: [ ubuntu-latest, windows-latest ] steps: