ci: split to parallel stages
This commit is contained in:
		
							
								
								
									
										19
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							@@ -12,16 +12,25 @@ on:
 | 
			
		||||
 | 
			
		||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
 | 
			
		||||
jobs:
 | 
			
		||||
  # This workflow contains a single job called "build"
 | 
			
		||||
  build:
 | 
			
		||||
    # The type of runner that the job will run on
 | 
			
		||||
  pre-commit:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    # Steps represent a sequence of tasks that will be executed as part of the job
 | 
			
		||||
    steps:
 | 
			
		||||
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: pre-commit
 | 
			
		||||
      uses: pre-commit/action@v1.1.0
 | 
			
		||||
  lint:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: Hadolint Action
 | 
			
		||||
      uses: brpaz/hadolint-action@v1.1.0
 | 
			
		||||
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: Build the tagged Docker image
 | 
			
		||||
      run: docker build .
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user