actions: run unittests in final docker images after build
This commit is contained in:
		
							
								
								
									
										14
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@ -52,10 +52,24 @@ jobs:
 | 
				
			|||||||
        run: docker push beryju/passbook-static:0.7.6-beta
 | 
					        run: docker push beryju/passbook-static:0.7.6-beta
 | 
				
			||||||
      - name: Push Docker Container to Registry (latest)
 | 
					      - name: Push Docker Container to Registry (latest)
 | 
				
			||||||
        run: docker push beryju/passbook-static:latest
 | 
					        run: docker push beryju/passbook-static:latest
 | 
				
			||||||
 | 
					  test-release:
 | 
				
			||||||
    needs:
 | 
					    needs:
 | 
				
			||||||
      - build-server
 | 
					      - build-server
 | 
				
			||||||
      - build-static
 | 
					      - build-static
 | 
				
			||||||
    runs-on: [ubuntu-latest]
 | 
					    runs-on: [ubuntu-latest]
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v1
 | 
				
			||||||
 | 
					      - name: Run test suite in final docker images
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          export PASSBOOK_DOMAIN=localhost
 | 
				
			||||||
 | 
					          docker-compose pull
 | 
				
			||||||
 | 
					          docker-compose up --no-start
 | 
				
			||||||
 | 
					          docker-compose start postgresql redis
 | 
				
			||||||
 | 
					          docker-compose run -u root server bash -c "pip install --no-cache -r requirements-dev.txt && ./manage.py test"
 | 
				
			||||||
 | 
					  package-helm:
 | 
				
			||||||
 | 
					    needs:
 | 
				
			||||||
 | 
					      - test-release
 | 
				
			||||||
 | 
					    runs-on: [ubuntu-latest]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v1
 | 
					      - uses: actions/checkout@v1
 | 
				
			||||||
      - name: Install Helm
 | 
					      - name: Install Helm
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user