Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master #366

Merged
merged 228 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
acb68f1
Merge pull request #136 from mineadmin/2.0
zds-s Feb 26, 2024
466f230
Add English readme
zds-s Feb 27, 2024
14e3532
Add unit tests for common, dataSource, etc.
zds-s Feb 27, 2024
2cb32bc
Databases Migrate
zds-s Feb 27, 2024
3df499b
Merge branch 'master' into 2.0.x-dev
zds-s Feb 27, 2024
4eb2ccd
Databases Seeder
zds-s Feb 27, 2024
c15b306
Fixed Database initialization
zds-s Feb 27, 2024
0898b97
Fixed
zds-s Feb 27, 2024
74a8580
github actions change to use hyperf official test.yml
zds-s Feb 27, 2024
06015c5
Fixed
zds-s Feb 27, 2024
572a9fa
Fixed sh
zds-s Feb 27, 2024
21bd2e8
Fixed
zds-s Feb 27, 2024
38e87b6
Fixed run.check.sh
zds-s Feb 27, 2024
43f31d6
Delete env
zds-s Feb 27, 2024
a23d6e0
Fixed
zds-s Feb 27, 2024
0619c64
Fixed
zds-s Feb 27, 2024
275ec8f
Fixed
zds-s Feb 27, 2024
763ae51
Fixed
zds-s Feb 27, 2024
6d7315b
Fixed
zds-s Feb 27, 2024
6237f3e
Fixed Mysql
zds-s Feb 27, 2024
a455a9f
Fixed Mysql
zds-s Feb 27, 2024
578c264
Rename ci
zds-s Feb 27, 2024
314e6bd
Set mysql root password
zds-s Feb 27, 2024
af06663
Reset Mysql Container
zds-s Feb 27, 2024
b9e3ce4
Fixed
zds-s Feb 27, 2024
5f8a259
Delete Other services
zds-s Feb 27, 2024
8acf2af
Set Mysql Default
zds-s Feb 27, 2024
a215b8c
Fixed
zds-s Feb 28, 2024
4ed2e43
Fixed
zds-s Feb 28, 2024
c2b3779
Fixed pgsql
zds-s Feb 28, 2024
df2e66e
Fixed env
zds-s Feb 28, 2024
c34a82d
Fixed pgsql config
zds-s Feb 28, 2024
8291849
Fixed
zds-s Feb 28, 2024
ae9bf6a
Fixed docker exec
zds-s Feb 28, 2024
57780c7
Merge branch 'master' into 2.0.x-dev
zds-s Feb 28, 2024
2fd003f
Merge pull request #137 from mineadmin/2.0.x-dev
zds-s Feb 28, 2024
7c58552
Doc
zds-s Feb 28, 2024
8254e37
Merge pull request #138 from mineadmin/2.0.x-dev
zds-s Feb 28, 2024
7c2a9a3
Modify the readme content that points to the wrong link due to the us…
zds-s Feb 28, 2024
03c60b8
Added changelog
zds-s Feb 28, 2024
c27332b
Add a single test for settingDatasource
zds-s Feb 28, 2024
9ef0942
Adding Unit Tests
zds-s Feb 28, 2024
5fd26f6
Added Unit Test
zds-s Feb 28, 2024
1cf6694
Code Style
zds-s Feb 28, 2024
ff224e4
Merge pull request #139 from mineadmin/2.0.x-dev
zds-s Feb 28, 2024
39b3746
Added workflows
zds-s Feb 28, 2024
a542fdb
Added Beforeach
zds-s Feb 28, 2024
4f08abc
Code Style
zds-s Feb 28, 2024
f516fe5
Add LoginController unit test
zds-s Feb 28, 2024
571a16a
Merge pull request #143 from zds-s/added-test
zds-s Feb 28, 2024
1aad9db
Delete codecov.yml
zds-s Feb 28, 2024
1d901c3
Merge pull request #145 from zds-s/added-test
zds-s Feb 28, 2024
5aa1e9a
Fixed test.yml
zds-s Feb 28, 2024
73cb5ac
Merge pull request #146 from zds-s/added-test
zds-s Feb 28, 2024
0993c5a
Fixed
zds-s Feb 28, 2024
2ed2ad3
Merge pull request #147 from zds-s/added-test
zds-s Feb 28, 2024
35bdd99
Added CommonController Unit Test
zds-s Feb 28, 2024
88c2272
Merge pull request #148 from zds-s/added-test
zds-s Feb 28, 2024
0a956ff
Fixed test.yml
zds-s Feb 28, 2024
c8aca01
Added DeptController Test
zds-s Feb 28, 2024
f509517
Merge pull request #149 from zds-s/added-test
zds-s Feb 28, 2024
6d73cdd
Code style
zds-s Feb 28, 2024
c2408da
Fixed test.yml
zds-s Feb 28, 2024
d3e2087
Merge pull request #150 from zds-s/added-test
zds-s Feb 28, 2024
5a79b5b
Fixed coverage
zds-s Feb 28, 2024
a3dc08e
Merge pull request #151 from zds-s/added-test
zds-s Feb 28, 2024
5894546
Added PostController Unit Test
zds-s Feb 28, 2024
e1dd706
Merge branch 'master' into added-test
zds-s Feb 28, 2024
3880051
Added php coverage
zds-s Feb 28, 2024
d188152
Delete coverage.xml
zds-s Feb 28, 2024
cb8bb7b
Merge pull request #152 from zds-s/added-test
zds-s Feb 28, 2024
072d92d
Added MenuController Unit Test
zds-s Feb 28, 2024
9dac183
Fixed
zds-s Feb 28, 2024
ca116fc
Merge pull request #153 from zds-s/added-test
zds-s Feb 28, 2024
4e45635
Add tree test
zds-s Feb 28, 2024
800be29
Fixed delLeader
zds-s Feb 28, 2024
247615f
Fixed Coverage
zds-s Feb 28, 2024
a21d0bb
Merge pull request #154 from zds-s/added-test
zds-s Feb 28, 2024
25fe5fa
Added unit test
zds-s Feb 29, 2024
bf28ba9
Fixed
zds-s Feb 29, 2024
f110e24
Merge pull request #155 from zds-s/added-test
zds-s Feb 29, 2024
5f992f0
Optimize pest configuration and improve MenuController interface test…
zds-s Feb 29, 2024
e8edec4
Merge branch 'master' into added-test
zds-s Feb 29, 2024
3a47178
Added RoleController Testing
zds-s Feb 29, 2024
050fc57
Added System/Permission/UserController Test
zds-s Feb 29, 2024
1a3edab
Merge pull request #156 from zds-s/added-test
zds-s Feb 29, 2024
5702315
Fixed
zds-s Feb 29, 2024
7e7452b
Merge pull request #157 from zds-s/added-test
zds-s Feb 29, 2024
9cc3727
Added CacheMonitorController Test
zds-s Feb 29, 2024
a9a11f9
Fixed actions
zds-s Feb 29, 2024
a71221b
Delete test.yml xdebug extension
zds-s Feb 29, 2024
4ac3df4
Changing script permissions
zds-s Feb 29, 2024
c07cf8b
Fixed cs-fix actions
zds-s Feb 29, 2024
bcd7722
Close Console sql log
zds-s Feb 29, 2024
72c7ca6
Merge pull request #158 from zds-s/added-test
zds-s Feb 29, 2024
71c1384
Remove coverage report
zds-s Mar 1, 2024
679648f
Merge pull request #159 from zds-s/added-test
zds-s Mar 1, 2024
4ffea9f
Added Logs,Online,Server Test
zds-s Mar 1, 2024
13e1349
Added AttachmentController test
zds-s Mar 1, 2024
01f87fc
Code Style
zds-s Mar 1, 2024
0decea7
Fixed test fail
zds-s Mar 1, 2024
1d99171
Fixed phpstan notfond swoole_is_in_container
zds-s Mar 1, 2024
3684e1a
Fixed pgsql
zds-s Mar 1, 2024
9408f0d
Merge pull request #160 from zds-s/added-test
zds-s Mar 1, 2024
b99f6d5
Added DictData,DataMaintain Test
zds-s Mar 1, 2024
f54a3f0
Added Dict and Notic Test
zds-s Mar 1, 2024
f801389
Refinement of controller unit tests for the DataCenter module
zds-s Mar 1, 2024
8a3fb06
Fixed
zds-s Mar 1, 2024
1666906
Fixed install.sh
zds-s Mar 1, 2024
df799a9
Fixed .travis/.env.example
zds-s Mar 1, 2024
3a9cbc1
Added Api test
zds-s Mar 1, 2024
914dd89
Merge branch 'master' into added-test
zds-s Mar 1, 2024
0de9ad4
Added generator code test
zds-s Mar 1, 2024
7f4f25f
Added GenerateCodeTest
zds-s Mar 1, 2024
ac7167d
Merge pull request #163 from zds-s/added-test
zds-s Mar 1, 2024
26c628b
Fixed ip test
zds-s Mar 2, 2024
ac3da35
Added generator,crontab controller test
zds-s Mar 2, 2024
a8564a0
Skip generator checks
zds-s Mar 2, 2024
d166ba0
Added CrontabController test
zds-s Mar 2, 2024
27f4339
Added CrontabController test
zds-s Mar 2, 2024
a2ee6bd
Complete all module controller testing
zds-s Mar 2, 2024
830d21c
Fixed
zds-s Mar 2, 2024
32fec45
Fixed
zds-s Mar 2, 2024
788da6d
Fixed
zds-s Mar 2, 2024
183e6a8
Fixed test
zds-s Mar 2, 2024
88f14bb
Merge pull request #164 from zds-s/added-test
zds-s Mar 2, 2024
688d947
Fixed
zds-s Mar 4, 2024
b592f2f
Merge pull request #165 from zds-s/added-test
zds-s Mar 4, 2024
e9f694f
Rename the unit test directory
zds-s Mar 11, 2024
4e166eb
Merge pull request #170 from zds-s/added-test
zds-s Mar 11, 2024
26a2fef
Remove comment (#173)
zds-s Mar 12, 2024
9309fee
Adding a gitee repository synchronisation process (#174)
zds-s Mar 13, 2024
2ee33cc
Optimising judgement functions (#180)
zds-s Mar 14, 2024
42894b4
Add code generation preview (#178)
netyum Mar 14, 2024
6bb5f99
Remove CheckModuleMiddleware (#184)
zds-s Mar 14, 2024
880ab3e
Add CheckModule to all controllers.
zds-s Mar 16, 2024
766ef6b
add extra column for setting_generate_columns and fix autoform
netyum Mar 14, 2024
6b65f44
fix
netyum Mar 14, 2024
f2f7032
Fix cache prefix inconsistency (#199)
zds-s Mar 19, 2024
b71ba2f
Create codeql.yml
zds-s Mar 19, 2024
cae1fc3
Customizing response headers (#200)
zds-s Mar 19, 2024
850c936
Optimise pest test scripts. Remove meaningless process scripts (#203)
zds-s Mar 23, 2024
4c33131
Close swagger server (#204)
zds-s Mar 24, 2024
ef7fa9c
Specify the swagger version (#205)
zds-s Mar 25, 2024
48f27cf
Optimize readme (#209)
zds-s Apr 1, 2024
e0c80da
Optimize common.php repeated introduction problem (#213)
zds-s Apr 2, 2024
9b78e53
Added preview of field migration files (#215)
zds-s Apr 7, 2024
ac97725
Remove the empty redis method (#217)
zds-s Apr 8, 2024
bac8b6b
Repair some files generated when table prefix is not null automatical…
hi-noikiy Apr 9, 2024
861e930
Add interface testing process in sql server environment (#219)
zds-s Apr 11, 2024
41183a3
Releases-2.0-beta.6 (#221)
zds-s Apr 11, 2024
37a5f0c
Adding comments to .env.example key fields (#224)
zds-s Apr 13, 2024
9d33aa7
Optimal Amqp (#225)
zds-s Apr 13, 2024
349d2d4
Fix Push Messages (#226)
zds-s Apr 15, 2024
25b1818
refactor
kanyxmo Apr 16, 2024
a5ecdef
.env.example adds JWT default values (#228)
NEKGod Apr 18, 2024
f8a1025
Add labels automatically for pr (#229)
zds-s Apr 18, 2024
a728b26
fix: created table migrations allow nullable
kanyxmo Apr 18, 2024
703c664
Merge pull request #230 from mineadmin/patch-1
kanyxmo Apr 18, 2024
dbe16e0
feat: `common/commmon.php` add has_permission() and has_role() two fu…
kanyxmo Apr 19, 2024
88b94b4
Merge pull request #231 from mineadmin/permission
kanyxmo Apr 19, 2024
d0656a9
Code style (#232)
zds-s Apr 19, 2024
e38233e
system_user model backend_setting field add mapping json (#237)
People-Sea Apr 22, 2024
1482197
feat: add appStore plugin
kanyxmo Apr 22, 2024
00ec3a1
fix
kanyxmo Apr 23, 2024
0867b62
Add user controller form validation rules (#239)
Eno233 Apr 25, 2024
54085f5
up
kanyxmo Apr 25, 2024
5cb62e9
Update CONTRIBUTING.md (#242)
zds-s Apr 26, 2024
4295b9b
up
kanyxmo Apr 30, 2024
f3ed750
fix: 更新模块json里的order属性,市场插件up
kanyxmo May 5, 2024
ff1db14
add getmyapp method
kanyxmo May 7, 2024
f88f2ef
fix: Optimise user filtering logic (#250)
getda May 8, 2024
ef4e2b5
Using mineadmin Appstore (#252)
zds-s May 10, 2024
2c4dfab
move docker-composer to directory,add a .env file (#253)
faizel-88 May 11, 2024
35d0df5
Merge branch 'master' into appstore
kanyxmo May 11, 2024
38cdedf
update
kanyxmo May 11, 2024
48b2db1
fix
kanyxmo May 15, 2024
a5abe5d
V2.0-RC (#259)
zds-s May 17, 2024
bc43e2c
Revert "move docker-composer to directory,add a .env file (#253)" (#260)
zds-s May 20, 2024
a359c26
Merge branch 'master' into appstore
kanyxmo May 20, 2024
7e69b6b
Remove redundant configuration (#263)
zds-s May 21, 2024
eac389a
update
kanyxmo May 21, 2024
e532caa
update
kanyxmo May 22, 2024
c774600
fix
kanyxmo May 23, 2024
0c40362
fix
kanyxmo May 23, 2024
be05f2c
Merge branch 'master' into appstore
kanyxmo May 26, 2024
c66007c
update
kanyxmo May 26, 2024
87b8a0b
feat: 后台可视化应用市场插件
kanyxmo May 26, 2024
2dc732e
Removing Meaningless Test Processes (#265)
zds-s May 30, 2024
6eb6784
Release v2.0-stable (#266)
zds-s May 30, 2024
0462140
fix
kanyxmo Jun 3, 2024
2f8d294
Update .env.example
kanyxmo Jun 3, 2024
f3192e0
Merge pull request #267 from mineadmin/kanyxmo-patch-1
kanyxmo Jun 3, 2024
1b9209c
Update README.md
kanyxmo Jun 3, 2024
ce41939
Merge pull request #268 from mineadmin/kanyxmo-patch-2
kanyxmo Jun 3, 2024
05c062a
Update mine-extension.php
kanyxmo Jun 3, 2024
b76cc7e
Merge pull request #269 from mineadmin/kanyxmo-patch-2
kanyxmo Jun 3, 2024
1abf182
feat Auto-generated changelog (#271)
zds-s Jun 6, 2024
4b64fe1
fix 解决部门树状数据时重复问题 (#274)
onekb Jun 8, 2024
001d656
fixed: 修复因 storage_mode是int类型获取文件系统不正确导致无法删除OSS或其他文件系统文件 (#275)
zazi523623 Jun 13, 2024
9d501bb
fix:修复变量注释不自动提示问题 (#277)
jnewer Jun 14, 2024
0190b54
Fix spacing issue in .env.example" -m "" -m "The .env.example file ha…
BadJacky Jun 17, 2024
a7ba21f
Remove workflow (#281)
zds-s Jun 17, 2024
573bc93
add docker mysql volumes (#282)
jerevive Jun 20, 2024
b3c98d5
fix 修改用户更新个人资料过滤不存在的字段、修复手机号码验证传递null会报错的问题 (#283)
zazi523623 Jun 20, 2024
2f3ab3c
feat: 字典分类新增list接口
kanyxmo Jun 22, 2024
7fdba34
Merge pull request #284 from mineadmin/patch-dictTypeList
kanyxmo Jun 22, 2024
f9dfe19
Release v2.0.1 (#285)
zds-s Jun 22, 2024
ce70f7a
Using php-cs-fixer parallel (#287)
zds-s Jun 24, 2024
5c68ecb
Add Composer create-project Support (#289)
zds-s Jun 28, 2024
a0318cd
Update Readme (#291)
zds-s Jun 28, 2024
a954d96
fixed (#292)
zds-s Jul 1, 2024
e094254
Fix(filterExecuteAttributes): Utilizing memory address pointers (#294)
People-Sea Jul 2, 2024
cf6eddd
LoginListener.php: 修复因为多点登录复用同一个token导致该账号最近一次登录的设备登出就无法获得正确的用户在线情况 (…
ShaBaoFa Jul 4, 2024
84e8bb6
FIX : 用户信息password字段隐藏.避免安全隐患. (#297)
ShaBaoFa Jul 5, 2024
d129ec7
Fix: 优化 is_in_container 函数(#298)
clq321 Jul 9, 2024
d431f1a
Release v2.0.2 (#304)
zds-s Jul 9, 2024
3f11af4
fix dept level bug (#306)
ShaBaoFa Jul 11, 2024
c8e4f01
Remove mine-admin/app-store install.lock (#308)
zds-s Jul 11, 2024
33d001a
fix: 修复ClearLogCrontab 清空所有日志时开启事务导致失败 和 watch 脚本php8.2警告 (#309)
People-Sea Jul 12, 2024
de259bd
Update(README):
People-Sea Jul 26, 2024
3d796b4
fix(修复下载插件失败): 修复因space与插件名拼接重叠导致无法下载 (#319)
sinceleo Aug 3, 2024
b3491ac
插件内多语言,内聚 (#334)
netyum Aug 14, 2024
a79bae6
fix(setting_config_seeder): 确保config_select_data为数组类型 (#341)
People-Sea Aug 19, 2024
18f22e0
optimal(jwt): login_type设置默认值(#342)
luckydog-sunny Aug 21, 2024
8d4450c
Fix: 修复无需验证也可查看api文档 (#345)
People-Sea Sep 11, 2024
e52b959
Fix: 修复默认语言是英语时,下载插件报错 (#350)
51 Oct 5, 2024
9255dfc
Fix: 修复无需验证也可查看api文档 (#351)
People-Sea Oct 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@ APP_NAME=skeleton
APP_ENV=dev

DB_DRIVER=mysql
DB_HOST=localhost
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=mine
DB_USERNAME=root
DB_PASSWORD=root
DB_PASSWORD=123456
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_unicode_ci
DB_PREFIX=

REDIS_HOST=localhost
REDIS_HOST=redis
REDIS_AUTH=
REDIS_PORT=6379
REDIS_DB=0

AMQP_HOST = 127.0.0.1
AMQP_PORT = 5672
AMQP_USER = guest
AMQP_PASSWORD = guest
AMQP_VHOST = /
AMQP_ENABLE = false
AMQP_HOST=rabbitmq
AMQP_PORT=5672
AMQP_USER=mineadmin
AMQP_PASSWORD=123456
AMQP_VHOST=/
AMQP_ENABLE=false

SUPER_ADMIN = 1000
ADMIN_ROLE = 1000
CONSOLE_SQL = true
JWT_SECRET = abcdefg
JWT_API_SECRET = 654321
CONSOLE_SQL=true
JWT_SECRET=azOVxsOWt3r0ozZNz8Ss429ht0T8z6OpeIJAIwNp6X0xqrbEY2epfIWyxtC1qSNM8eD6/LQ/SahcQi2ByXa/2A==
JWT_API_SECRET=ISfQtGMNRtGopgzfxxS9A3d7kpBxknf74gVrFHnpPTzkzI2+80l+NmznOkOQLSpMt7Xw9YVvQUZlBaQVMDDMQQ==

SUPER_ADMIN=1
25 changes: 25 additions & 0 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
labelPRBasedOnFilePath:
Setting:
- app/Setting/**/*
System:
- app/System/**/*
UnitTest:
- test/**/*
ChangeLog:
- CHANGELOG-*.md
Composer:
- composer.json
- src/*/composer.json

firstPRWelcomeComment: >
Thanks for opening this pull request! Please check out our [contributing guidelines](https://github.com/mineadmin/MineAdmin/blob/master/CONTRIBUTING.md).
感谢您开启此拉取请求!请查看我们的 [贡献者指南](https://github.com/mineadmin/MineAdmin/blob/master/CONTRIBUTING.md#L51)。
# Comment to be posted to congratulate user on their first merged PR
firstPRMergeComment: >
Awesome work, congrats on your first merged pull request!
祝贺你的第一个拉取请求被合并!

# Comment to be posted to on first time issues
firstIssueWelcomeComment: >
Thanks for opening your first issue here! Be sure to follow the issue template!
感谢您在这里反馈第一个问题!请务必遵循问题模板!
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
6 changes: 6 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,10 @@ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so

WORKDIR /opt/www

COPY . /opt/www

RUN composer install --no-dev -o && php bin/hyperf.php

EXPOSE 9501 9502 9503

ENTRYPOINT ["php", "/opt/www/bin/hyperf.php", "start"]
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: docker:latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Build
run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf .
run: docker build -t hyperf .
- name: docker-compose
run:
docker-compose up -d
85 changes: 85 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Code Coverage Upload

on:
push:
pull_request:
schedule:
- cron: '0 2 * * *'

jobs:
tests:
name: build Code coverage report
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [ ubuntu-latest ]
php-version: [ '8.1' ]
sw-version: [ 'v5.1.2']
exclude:
- php-version: '8.3'
sw-version: 'v5.0.3'
max-parallel: 20
fail-fast: false
env:
SW_VERSION: ${{ matrix.sw-version }}
MYSQL_VERSION: '8.0'
PGSQL_VERSION: '14'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upgrade
run: |
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade -f
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: phpize
extensions: redis, pdo, pdo_mysql, bcmath
ini-values: opcache.enable_cli=0
coverage: xdebug
- name: Setup Swoole
run: |
sudo apt-get install libcurl4-openssl-dev libc-ares-dev libpq-dev
wget https://github.com/swoole/swoole-src/archive/${SW_VERSION}.tar.gz -O swoole.tar.gz
mkdir -p swoole
tar -xf swoole.tar.gz -C swoole --strip-components=1
rm swoole.tar.gz
cd swoole
phpize
./configure --enable-openssl --enable-swoole-curl --enable-cares --enable-swoole-pgsql --enable-brotli
make -j$(nproc)
sudo make install
sudo sh -c "echo extension=swoole > /etc/php/${{ matrix.php-version }}/cli/conf.d/swoole.ini"
sudo sh -c "echo swoole.use_shortname='Off' >> /etc/php/${{ matrix.php-version }}/cli/conf.d/swoole.ini"
php --ri swoole
php --ri xdebug
- name: Setup Packages
run: ./.travis/requirement.install.sh
- name: Run PHPStan
run: ./.travis/run.check.sh
- name: Setup Services
run: ./.travis/setup.services.sh
- name: Setup Mysql
run: export TRAVIS_BUILD_DIR=$(pwd) && bash ./.travis/setup.mysql.sh
- name: Setup PostgreSQL
run: export TRAVIS_BUILD_DIR=$(pwd) && bash ./.travis/setup.pgsql.sh
- name: Run Scripts Before Test
run: cp .travis/.env.example .env
- name: Print PHP Environments
run: |
php -i
php -m
- name: Run Mysql Test Cases
env:
DB_DRIVER: mysql
DB_HOST: 127.0.0.1
DB_DATABASE: mineadmin
run: ./.travis/run.code-coverage.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: "./tests/coverage.xml"
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:

name: Release

permissions: write-all

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/sync-gitee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Sync Gitee Repository

on:
schedule:
- cron: '* 1 * * *'

jobs:
sync:
runs-on: ubuntu-latest
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Private Key
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "StrictHostKeyChecking no" >> ~/.ssh/config
- name: Push Mirror
env:
SOURCE_REPO: 'https://github.com/mineadmin/mineadmin.git'
DESTINATION_REPO: '[email protected]:mineadmin/mineadmin.git'
run: |
git clone --mirror "$SOURCE_REPO" && cd `basename "$SOURCE_REPO"`
git remote set-url --push origin "$DESTINATION_REPO"
git fetch -p origin
git for-each-ref --format 'delete %(refname)' refs/pull | git update-ref --stdin
git push --mirror
Loading
Loading