add phpunit windows support

This commit is contained in:
crazywhalecc
2022-08-22 20:54:14 +08:00
parent 2e61e2a366
commit 15383a6b92
7 changed files with 88 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ jobs:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ "ubuntu-latest", "macos-latest" ]
operating-system: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
php-versions: [ "7.4", "8.0", "8.1" ]
steps:
- name: Checkout code
@@ -36,7 +36,7 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php-versions }}
extensions: swoole, posix, json
extensions: swoole, posix, json, mbstring
env:
SWOOLE_CONFIGURE_OPTS: --enable-openssl
@@ -63,6 +63,9 @@ jobs:
- name: Run Static Analysis
run: "composer analyse"
- name: Run PHPUnit
run: "composer test"
cs-check:
name: PHP CS Fixer Check
runs-on: ubuntu-latest