change to integration-test

This commit is contained in:
crazywhalecc
2022-03-20 16:58:53 +08:00
parent 74e91a2950
commit e57753e44b

View File

@@ -1,21 +1,35 @@
name: Coding Style Analysis name: Integration Test
on: on:
- push push:
- pull_request branches:
- develop
pull_request:
branches:
- develop
types:
- opened
- synchronize
- reopened
- ready_for_review
- review_requested
jobs: jobs:
analysis: integration:
name: Coding Style Analysis name: Integration Test (PHP ${{ matrix.php-versions }}) (OS ${{ matrix.operating-system }})
runs-on: "ubuntu-latest" 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: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Setup PHP 7.2 - name: Setup PHP
uses: "shivammathur/setup-php@v2" uses: "shivammathur/setup-php@v2"
with: with:
php-version: "7.2" php-version: ${{ matrix.php-versions }}
extensions: swoole, posix, json extensions: swoole, posix, json
- name: Setup problem matchers for PHP - name: Setup problem matchers for PHP
@@ -42,4 +56,4 @@ jobs:
run: "composer analyse" run: "composer analyse"
- name: Run PHP CS Fixer Check - 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"