mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
* feat: Add light mode and dark mode.(#89) Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * fix: make file code len Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * feat: fix scripts support win Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * fix: make build issue Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * fix: golint and format Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * feat: add scripts sudo limits of authority Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * fix: docker images fix Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * fix: docker images fix Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --------- Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
74 lines
1.7 KiB
YAML
74 lines
1.7 KiB
YAML
name: OpenIM Start Execute Scripts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "README.md"
|
|
- "README_zh-CN.md"
|
|
- "CONTRIBUTING.md"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "README.md"
|
|
- "README_zh-CN.md"
|
|
- "CONTRIBUTING.md"
|
|
- "docs/**"
|
|
|
|
jobs:
|
|
execute-scripts:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Start Docker Compose
|
|
run: |
|
|
sudo docker compose stop
|
|
sudo sleep 30
|
|
sudo docker compose up -d
|
|
sudo sleep 60
|
|
continue-on-error: true
|
|
|
|
- name: Stop all services
|
|
run: |
|
|
sudo chmod +x ./scripts/stop_all.sh
|
|
sudo ./scripts/stop_all.sh
|
|
sudo cat logs/openIM.log 2>/dev/null
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
- name: Build all services
|
|
run: |
|
|
sudo chmod +x ./scripts/build_all_service.sh
|
|
sudo ./scripts/build_all_service.sh
|
|
sudo cat logs/openIM.log 2>/dev/null
|
|
shell: bash
|
|
continue-on-error: true
|
|
|
|
- name: Start all services
|
|
run: |
|
|
sudo chmod +x ./scripts/start_all.sh
|
|
sudo ./scripts/start_all.sh
|
|
sudo cat logs/openIM.log 2>/dev/null
|
|
continue-on-error: true
|
|
shell: bash
|
|
|
|
- name: Check all services
|
|
run: |
|
|
sudo chmod +x ./scripts/check_all.sh
|
|
sudo ./scripts/check_all.sh
|
|
sudo cat logs/openIM.log 2>/dev/null
|
|
shell: bash
|
|
|
|
- name: Print openIM.log
|
|
run: |
|
|
sudo cat logs/* 2>/dev/null
|
|
sudo cat logs/* 2>/dev/null >> "$GITHUB_OUTPUT"
|
|
shell: bash
|
|
continue-on-error: true
|