From e57753e44b3ef7e1255401f0af3050cc76cd3a5a Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 20 Mar 2022 16:58:53 +0800 Subject: [PATCH] change to integration-test --- ...tyle-analysis.yml => integration-test.yml} | 32 +++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) rename .github/workflows/{code-style-analysis.yml => integration-test.yml} (60%) diff --git a/.github/workflows/code-style-analysis.yml b/.github/workflows/integration-test.yml similarity index 60% rename from .github/workflows/code-style-analysis.yml rename to .github/workflows/integration-test.yml index b10dc349..b578b9c9 100644 --- a/.github/workflows/code-style-analysis.yml +++ b/.github/workflows/integration-test.yml @@ -1,21 +1,35 @@ -name: Coding Style Analysis +name: Integration Test on: - - push - - pull_request + push: + branches: + - develop + pull_request: + branches: + - develop + types: + - opened + - synchronize + - reopened + - ready_for_review + - review_requested jobs: - analysis: - name: Coding Style Analysis - runs-on: "ubuntu-latest" + integration: + name: Integration Test (PHP ${{ matrix.php-versions }}) (OS ${{ matrix.operating-system }}) + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ "ubuntu-latest", "macos-latest" ] + php-versions: [ "7.2", "7.3", "7.4", "8.0", "8.1" ] steps: - name: Checkout code uses: actions/checkout@v2 - - name: Setup PHP 7.2 + - name: Setup PHP uses: "shivammathur/setup-php@v2" with: - php-version: "7.2" + php-version: ${{ matrix.php-versions }} extensions: swoole, posix, json - name: Setup problem matchers for PHP @@ -42,4 +56,4 @@ jobs: run: "composer analyse" - name: Run PHP CS Fixer Check - run: "./vendor/bin/php-cs-fixer fix --dry-run --diff" + run: "./vendor/bin/php-cs-fixer fix --dry-run --diff" \ No newline at end of file