-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from monkenWu/dev
v0.3.0
- Loading branch information
Showing
24 changed files
with
208 additions
and
1,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
name: phpunit | ||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
jobs: | ||
# name: phpunit | ||
# on: | ||
# pull_request: | ||
# branches: [ main, dev ] | ||
# jobs: | ||
|
||
tests: | ||
runs-on: ubuntu-22.04 | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
name: ${{ matrix.driver }}-PHP ${{ matrix.php-ver }} | ||
# tests: | ||
# runs-on: ubuntu-22.04 | ||
# if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
# name: ${{ matrix.driver }}-PHP ${{ matrix.php-ver }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-ver: ['8.0','8.1'] | ||
driver: ['RoadRunner', 'Workerman'] | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# php-ver: ['8.0','8.1'] | ||
# driver: ['RoadRunner', 'Workerman'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-ver }} | ||
coverage: xdebug | ||
extensions: curl, dev, mbstring, zip, sockets, fpm, intl, posix | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.COMPOSER_AUTH }} | ||
# - name: Setup PHP | ||
# uses: shivammathur/setup-php@v2 | ||
# with: | ||
# php-version: ${{ matrix.php-ver }} | ||
# coverage: xdebug | ||
# extensions: curl, dev, mbstring, zip, sockets, fpm, intl, posix | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.COMPOSER_AUTH }} | ||
|
||
- name: Install dependencies | ||
working-directory: ./dev | ||
run: | | ||
composer install --prefer-dist --no-progress --no-suggest | ||
env: | ||
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} | ||
# - name: Install dependencies | ||
# working-directory: ./dev | ||
# run: | | ||
# composer install --prefer-dist --no-progress --no-suggest | ||
# env: | ||
# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} | ||
|
||
- name: Init Burner | ||
working-directory: ./dev | ||
run: | | ||
php spark burner:init ${{ matrix.driver }} | ||
php spark burner:start & | ||
# - name: Init Burner | ||
# working-directory: ./dev | ||
# run: | | ||
# php spark burner:init ${{ matrix.driver }} | ||
# php spark burner:start & | ||
|
||
- name: Test with PHPUnit | ||
working-directory: ./dev | ||
run: | | ||
vendor/bin/phpunit -v | ||
env: | ||
TERM: xterm-256color | ||
# - name: Test with PHPUnit | ||
# working-directory: ./dev | ||
# run: | | ||
# vendor/bin/phpunit -v | ||
# env: | ||
# TERM: xterm-256color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.