Skip to content

Commit

Permalink
build: reduce build concurrency using needs (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec authored Nov 1, 2021
1 parent 0252a1a commit 096e906
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:

codegen:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
Expand All @@ -52,7 +53,7 @@ jobs:

lint:
runs-on: ubuntu-latest
needs: [ test ]
needs: [ test, codegen ]
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
Expand All @@ -64,8 +65,10 @@ jobs:
# it = integration test
it:
runs-on: ubuntu-latest
needs: [ test, codegen, lint ]
strategy:
fail-fast: false
max-parallel: 2
matrix:
suite:
- db-e2e
Expand Down

0 comments on commit 096e906

Please sign in to comment.