Fix workflow for ui testing
这个提交包含在:
		
							父节点
							
								
									0d37cb7181
								
							
						
					
					
						当前提交
						050de7730f
					
				
					共有  1 个文件被更改,包括 21 次插入 和 5 次删除
				
			
		
							
								
								
									
										24
									
								
								.github/workflows/cypress-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/cypress-tests.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -5,10 +5,21 @@ jobs: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout code |       - name: Checkout code | ||||||
|         uses: actions/checkout@v2 |         uses: actions/checkout@v3 | ||||||
|  | 
 | ||||||
|  |       - name: Cache Node modules | ||||||
|  |         uses: actions/cache@v3 | ||||||
|  |         with: | ||||||
|  |           path: ~/.npm | ||||||
|  |           key: npm-${{ hashFiles('package-lock.json') }} | ||||||
|  |           restore-keys: | | ||||||
|  |             npm- | ||||||
|  | 
 | ||||||
|  |       - name: Install dependencies | ||||||
|  |         run: npm install | ||||||
| 
 | 
 | ||||||
|       - name: Cache Cypress |       - name: Cache Cypress | ||||||
|         uses: actions/cache@v2 |         uses: actions/cache@v3 | ||||||
|         with: |         with: | ||||||
|           path: ~/.cache/Cypress |           path: ~/.cache/Cypress | ||||||
|           key: cypress-${{ hashFiles('package-lock.json') }} |           key: cypress-${{ hashFiles('package-lock.json') }} | ||||||
|  | @ -19,7 +30,7 @@ jobs: | ||||||
|         run: npm install cypress |         run: npm install cypress | ||||||
| 
 | 
 | ||||||
|       - name: Cache .env |       - name: Cache .env | ||||||
|         uses: actions/cache@v2 |         uses: actions/cache@v3 | ||||||
|         with: |         with: | ||||||
|           path: .env |           path: .env | ||||||
|           key: .env-${{ hashFiles('.env.sample') }} |           key: .env-${{ hashFiles('.env.sample') }} | ||||||
|  | @ -36,7 +47,12 @@ jobs: | ||||||
|         run: docker-compose up -d |         run: docker-compose up -d | ||||||
| 
 | 
 | ||||||
|       - name: Wait for services to start |       - name: Wait for services to start | ||||||
|         run: sleep 5 |         run: | | ||||||
|  |           for i in `seq 1 30`; do | ||||||
|  |             curl -s http://localhost:80 > /dev/null && break | ||||||
|  |             echo "Waiting for services to start..." | ||||||
|  |             sleep 5 | ||||||
|  |           done | ||||||
| 
 | 
 | ||||||
|       - name: Populate dxcc_entities table |       - name: Populate dxcc_entities table | ||||||
|         run: curl "http://localhost/index.php/update/dxcc" |         run: curl "http://localhost/index.php/update/dxcc" | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用