mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 11:17:28 +00:00 
			
		
		
		
	fix ci workflow order
This commit is contained in:
		
							parent
							
								
									644bd0acec
								
							
						
					
					
						commit
						99fe50219d
					
				
							
								
								
									
										13
									
								
								.github/workflows/ci-commit.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/ci-commit.yml
									
									
									
									
										vendored
									
									
								
							@ -3,14 +3,5 @@ on:
 | 
			
		||||
  push:
 | 
			
		||||
# run per commit ci checks against this commit
 | 
			
		||||
jobs:
 | 
			
		||||
  proto-lint:
 | 
			
		||||
    uses: ./.github/workflows/proto.yml
 | 
			
		||||
  golangci-lint:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@master
 | 
			
		||||
      - name: golangci-lint
 | 
			
		||||
        uses: reviewdog/action-golangci-lint@v1
 | 
			
		||||
        with:
 | 
			
		||||
          github_token: ${{ secrets.github_token }}
 | 
			
		||||
          reporter: github-pr-review
 | 
			
		||||
  lint:
 | 
			
		||||
    uses: ./.github/workflows/ci-lint.yml
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										16
									
								
								.github/workflows/ci-lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/ci-lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
			
		||||
name: Lint Checks
 | 
			
		||||
on:
 | 
			
		||||
  workflow_call:
 | 
			
		||||
# run per commit ci checks against this commit
 | 
			
		||||
jobs:
 | 
			
		||||
  proto-lint:
 | 
			
		||||
    uses: ./.github/workflows/proto.yml
 | 
			
		||||
  golangci-lint:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@master
 | 
			
		||||
      - name: golangci-lint
 | 
			
		||||
        uses: reviewdog/action-golangci-lint@v1
 | 
			
		||||
        with:
 | 
			
		||||
          github_token: ${{ secrets.github_token }}
 | 
			
		||||
          reporter: github-pr-review
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/ci-master.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/ci-master.yml
									
									
									
									
										vendored
									
									
								
							@ -6,8 +6,8 @@ on:
 | 
			
		||||
      - master
 | 
			
		||||
jobs:
 | 
			
		||||
  # run per commit ci checks against master branch
 | 
			
		||||
  commit-checks:
 | 
			
		||||
    uses: ./.github/workflows/ci-commit.yml
 | 
			
		||||
  lint-checks:
 | 
			
		||||
    uses: ./.github/workflows/ci-lint.yml
 | 
			
		||||
  # run default ci checks against master branch
 | 
			
		||||
  default-checks:
 | 
			
		||||
    uses: ./.github/workflows/ci-default.yml
 | 
			
		||||
@ -15,7 +15,7 @@ jobs:
 | 
			
		||||
  # configurations for databases, cpu architectures and operating systems
 | 
			
		||||
  publish-internal:
 | 
			
		||||
    # only run if all checks pass
 | 
			
		||||
    needs: [commit-checks, default-checks]
 | 
			
		||||
    needs: [lint-checks, default-checks]
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: set build tag
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user