3131 docker run --rm --name breeze_ci_mysql4623 -p 4623:3306 -d parabala/mysqlci_with_schema:v0.0.2
3232 docker run --rm --name breeze_ci_mysql4624 -p 4624:3306 -d parabala/mysqlci_with_schema:v0.0.2
3333 - name : Prepare Vintage_MC_Redis
34- run : docker run -d -v /home/runner/work/breeze:/data1/resource/breeze --net="host" --name breeze_github_ci hustfisher/breeze:githubci115
34+ run : |
35+ docker run -d \
36+ -v /home/runner/work/breeze:/data1/resource/breeze \
37+ -p 8080:8080 \
38+ -p 13739:13739 \
39+ -p 13740:13740 \
40+ -p 13741:13741 \
41+ -p 13742:13742 \
42+ -p 56378:56378 \
43+ -p 56379:56379 \
44+ -p 56380:56380 \
45+ -p 56381:56381 \
46+ -p 56382:56382 \
47+ -p 56383:56383 \
48+ -p 56384:56384 \
49+ -p 56385:56385 \
50+ -p 56386:56386 \
51+ -p 56387:56387 \
52+ -p 56388:56388 \
53+ -p 56389:56389 \
54+ -p 56390:56390 \
55+ -p 56391:56391 \
56+ -p 56392:56392 \
57+ -p 56393:56393 \
58+ -p 8010:8010 \
59+ -p 8011:8011 \
60+ -p 8012:8012 \
61+ -p 8013:8013 \
62+ -p 8775:8775 \
63+ -p 8776:8776 \
64+ -p 8777:8777 \
65+ -p 8778:8778 \
66+ --name breeze_github_ci viciousstar/breeze:githubci120
3567 - uses : actions/checkout@v3
3668 - name : Install stable toolchain
3769 uses : actions-rs/toolchain@v1
4274 run : cargo build
4375 - name : Check Vintage
4476 run : |
45- docker ps -a
4677 curl http://127.0.0.1:8080/config/cloud/redis/testbreeze/redismeshtest
4778 curl http://127.0.0.1:8080/config/v1/cache.service.testbreeze.pool.yf/all
4879 sleep 1
@@ -76,20 +107,12 @@ jobs:
76107 - name : Check Status
77108 run : |
78109 sleep 6s
79- netstat -nat|grep LISTEN
80- #ps -aux|grep breeze
110+ docker ps -a
111+ docker inspect breeze_github_ci
112+ netstat -natp|grep LISTEN
81113 ls -all /home/runner/work/breeze/snapshot
82114 ls -all /home/runner/work/breeze/socks
83115 ls -all /home/runner/work/breeze/logs
84- tail -10 /home/runner/work/breeze/logs/log.file
85- tail -10 /home/runner/work/breeze/logs/breeze.log
86- #cat /home/runner/work/breeze/logs/log.file
87- #cat /home/runner/work/breeze/logs/breeze.log
88- # - name: Run cargo-tarpaulin
89- # uses: actions-rs/tarpaulin@v0.1
90- # with:
91- # version: "0.22.0"
92- # args: "--features=github_workflow --features=console-api -- --test-threads 1"
93116 - name : Run unit tests
94117 run : cargo test -p tests --features github_workflow -p endpoint
95118 - name : wait until 2 mins
@@ -125,4 +148,7 @@ jobs:
125148 if : failure()
126149 run : |
127150 cat /home/runner/work/breeze/logs/log.file
128- cat /home/runner/work/breeze/logs/breeze.log
151+ - name : Output docker log
152+ if : failure()
153+ run : |
154+ docker logs breeze_github_ci
0 commit comments