mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 16:32:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.6 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: |
 | |
|         docker compose stop
 | |
|         sleep 30
 | |
|         docker compose up -d
 | |
|         sleep 60
 | |
|       continue-on-error: true
 | |
| 
 | |
|     - name: Stop all services
 | |
|       run: |
 | |
|         chmod +x ./scripts/stop_all.sh
 | |
|         ./scripts/stop_all.sh
 | |
|         cat logs/openIM.log 2>/dev/null
 | |
|       shell: bash
 | |
| 
 | |
|     - name: Build all services
 | |
|       run: |
 | |
|         chmod +x ./scripts/build_all_service.sh
 | |
|         ./scripts/build_all_service.sh
 | |
|         cat logs/openIM.log 2>/dev/null
 | |
|       shell: bash
 | |
| 
 | |
|     - name: Start all services
 | |
|       run: |
 | |
|         chmod +x ./scripts/start_all.sh
 | |
|         ./scripts/start_all.sh
 | |
|         cat logs/openIM.log 2>/dev/null
 | |
|       continue-on-error: true
 | |
|       shell: bash
 | |
| 
 | |
|     - name: Check all services
 | |
|       run: |
 | |
|         chmod +x ./scripts/check_all.sh
 | |
|         ./scripts/check_all.sh
 | |
|         cat logs/openIM.log 2>/dev/null
 | |
|       shell: bash
 | |
| 
 | |
|     - name: Print openIM.log
 | |
|       run: |
 | |
|         cat logs/* 2>/dev/null
 | |
|         cat logs/* 2>/dev/null >> "$GITHUB_OUTPUT"
 | |
|       shell: bash
 | |
|       continue-on-error: true
 |