Update CI to trigger on PRs and exclude from ops activities
This commit is contained in:
		
							parent
							
								
									07f780d322
								
							
						
					
					
						commit
						2eca57cc47
					
				
							
								
								
									
										5
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@ -1,12 +1,14 @@
 | 
				
			|||||||
name: CI Pipeline for the Backend and Frontend
 | 
					name: CI Pipeline for the Backend and Frontend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    types: [ opened, review_requested, synchronize ]
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  NODE_VERSION: 16.15.0
 | 
					  NODE_VERSION: 16.15.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  backend:
 | 
					  backend:
 | 
				
			||||||
 | 
					    if: "!contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')"
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        flavor: ['dev', 'prod']
 | 
					        flavor: ['dev', 'prod']
 | 
				
			||||||
@ -48,6 +50,7 @@ jobs:
 | 
				
			|||||||
        working-directory: ${{ matrix.flavor }}/backend
 | 
					        working-directory: ${{ matrix.flavor }}/backend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  frontend:
 | 
					  frontend:
 | 
				
			||||||
 | 
					    if: "!contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')"
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        flavor: ['dev', 'prod']
 | 
					        flavor: ['dev', 'prod']
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user