-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
merge swoft-component
- Loading branch information
Showing
335 changed files
with
4,186 additions
and
3,372 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
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Add 'kind/annotation' label to any change within the 'annotation' component | ||
kind/annotation: | ||
- src/annotation/**/* | ||
# add label for 'aop' component | ||
kind/aop: | ||
- src/aop/**/* | ||
# add label for 'bean' component | ||
kind/bean: | ||
- src/bean/**/* | ||
# add label for 'config' component | ||
kind/config: | ||
- src/config/**/* | ||
# add label for 'connection-pool' component | ||
kind/connection-pool: | ||
- src/connection-pool/**/* | ||
# add label for 'console' component | ||
kind/console: | ||
- src/console/**/* | ||
# add label for 'db' component | ||
kind/db: | ||
- src/db/**/* | ||
# add label for 'error' component | ||
kind/error: | ||
- src/error/**/* | ||
# add label for 'event' component | ||
kind/event: | ||
- src/event/**/* | ||
# add label for 'framework' component | ||
kind/framework: | ||
- src/framework/**/* | ||
# add label for 'http-message' component | ||
kind/http-message: | ||
- src/http-message/**/* | ||
# add label for 'http-server' component | ||
kind/http-server: | ||
- src/http-server/**/* | ||
# add label for 'i18n' component | ||
kind/i18n: | ||
- src/i18n/**/* | ||
# add label for 'log' component | ||
kind/log: | ||
- src/log/**/* | ||
# add label for 'process' component | ||
kind/process: | ||
- src/process/**/* | ||
# add label for 'proxy' component | ||
kind/proxy: | ||
- src/proxy/**/* | ||
# add label for 'redis' component | ||
kind/redis: | ||
- src/redis/**/* | ||
# add label for 'rpc-server' component | ||
kind/rpc-server: | ||
- src/rpc-server/**/* | ||
- src/rpc-client/**/* | ||
- src/rpc/**/* | ||
# add label for 'server' component | ||
kind/server: | ||
- src/server/**/* | ||
# add label for 'stdlib' component | ||
kind/stdlib: | ||
- src/stdlib/**/* | ||
# add label for 'task' component | ||
kind/task: | ||
- src/task/**/* | ||
# add label for 'tcp-server' component | ||
kind/tcp-server: | ||
- src/tcp-server/**/* | ||
- src/tcp/**/* | ||
# add label for 'validator' component | ||
kind/validator: | ||
- src/validator/**/* | ||
# add label for 'websocket-server' component | ||
kind/websocket-server: | ||
- src/websocket-server/**/* |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Add 'kind/annotation' label to any change within the 'annotation' component | ||
kind/annotation: | ||
- src/annotation/**/* | ||
# add label for 'aop' component | ||
kind/aop: | ||
- src/aop/**/* | ||
# add label for 'bean' component | ||
kind/bean: | ||
- src/bean/**/* | ||
# add label for 'config' component | ||
kind/config: | ||
- src/config/**/* | ||
# add label for 'connection-pool' component | ||
kind/connection-pool: | ||
- src/connection-pool/**/* | ||
# add label for 'console' component | ||
kind/console: | ||
- src/console/**/* | ||
# add label for 'db' component | ||
kind/db: | ||
- src/db/**/* | ||
# add label for 'error' component | ||
kind/error: | ||
- src/error/**/* | ||
# add label for 'event' component | ||
kind/event: | ||
- src/event/**/* | ||
# add label for 'framework' component | ||
kind/framework: | ||
- src/framework/**/* | ||
# add label for 'http-message' component | ||
kind/http-message: | ||
- src/http-message/**/* | ||
# add label for 'http-server' component | ||
kind/http-server: | ||
- src/http-server/**/* | ||
# add label for 'i18n' component | ||
kind/i18n: | ||
- src/i18n/**/* | ||
# add label for 'log' component | ||
kind/log: | ||
- src/log/**/* | ||
# add label for 'process' component | ||
kind/process: | ||
- src/process/**/* | ||
# add label for 'proxy' component | ||
kind/proxy: | ||
- src/proxy/**/* | ||
# add label for 'redis' component | ||
kind/redis: | ||
- src/redis/**/* | ||
# add label for 'rpc-server' component | ||
kind/rpc-server: | ||
- src/rpc-server/**/* | ||
- src/rpc-client/**/* | ||
- src/rpc/**/* | ||
# add label for 'server' component | ||
kind/server: | ||
- src/server/**/* | ||
# add label for 'stdlib' component | ||
kind/stdlib: | ||
- src/stdlib/**/* | ||
# add label for 'task' component | ||
kind/task: | ||
- src/task/**/* | ||
# add label for 'tcp-server' component | ||
kind/tcp-server: | ||
- src/tcp-server/**/* | ||
- src/tcp/**/* | ||
# add label for 'validator' component | ||
kind/validator: | ||
- src/validator/**/* | ||
# add label for 'websocket-server' component | ||
kind/websocket-server: | ||
- src/websocket-server/**/* |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This workflow will triage pull requests and apply a label based on the | ||
# paths that are modified in the pull request. | ||
# | ||
# To use this workflow, you will need to set up a .github/labeler.yml | ||
# file with configuration. For more information, see: | ||
# https://github.com/actions/labeler/blob/master/README.md | ||
|
||
name: Pull Request Labeler | ||
on: [pull_request] | ||
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# - uses: TimonVS/pr-labeler-action@v3 | ||
# with: | ||
# configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: PR Labeler | ||
# uses: paulfantom/periodic-labeler@master | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# GITHUB_REPOSITORY: ${{ github.repository }} | ||
# LABEL_MAPPINGS_FILE: .github/pr-labeler.yml | ||
|
||
- uses: actions/labeler@v2 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: ".github/pr-labeler.yml" |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# Github actions for swoft component tests | ||
# https://github.com/marketplace?type=actions | ||
# | ||
name: Unit-tests | ||
|
||
on: [push, pull_request] | ||
|
||
# usage refer https://github.com/shivammathur/setup-php | ||
jobs: | ||
test: | ||
name: Test on php ${{ matrix.php}} and ${{ matrix.os }} OS | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
env: | ||
SWOFT_DEBUG: 0 | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: false | ||
MYSQL_ROOT_PASSWORD: swoft123456 | ||
MYSQL_DATABASE: test | ||
ports: | ||
- 3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379/tcp | ||
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
strategy: | ||
fail-fast: false # dont fast fail | ||
matrix: | ||
php: [7.1, 7.2, 7.3] # 7.4 | ||
os: [ubuntu-latest] # , macOS-latest, windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup PHP | ||
timeout-minutes: 5 | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: ${{ matrix.php}} | ||
extensions: mbstring, dom, fileinfo, mysql, openssl, redis #optional, setup extensions | ||
ini-values: post_max_size=56M, short_open_tag=On #optional, setup php.ini configuration | ||
coverage: none #optional, setup coverage driver: xdebug, none | ||
pecl: true | ||
|
||
- name: Install swoole extensions | ||
timeout-minutes: 5 | ||
run: | | ||
sudo pecl install -f swoole && php -m | ||
# echo 'no' | pecl install -f redis | ||
# sudo pecl update-channels && pecl install -f msgpack && pecl install -f igbinary && php -m | ||
|
||
- name: Install dependencies | ||
run: composer install --no-progress --no-suggest | ||
|
||
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | ||
# Docs: https://getcomposer.org/doc/articles/scripts.md | ||
|
||
- name: Run test suite | ||
run: | # && composer run test | ||
pwd && ./phpunit.sh nodb |
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
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
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.