mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 08:35:35 +08:00
change to integration-test
This commit is contained in:
@@ -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"
|
||||||
Reference in New Issue
Block a user