Skip to content

Commit a804f1d

Browse files
committed
ci(workflows): [ci] loosen job dependencies
most jobs no longer depend on commitlint and/or gitguardian since they can run independently. this allows more jobs to run in parallel and reduces total pipeline time Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent fd66d27 commit a804f1d

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ jobs:
117117
with:
118118
args: --all-policies --format sarif --show-secrets --with-incident-details --verbose
119119
commitlint:
120-
needs:
121-
- gitguardian
122-
- preflight
120+
needs: preflight
123121
runs-on: ubuntu-latest
124122
steps:
125123
- id: checkout
@@ -147,10 +145,7 @@ jobs:
147145
if: github.run_number != '1'
148146
run: yarn commitlint --from $SHA~${{ github.event.pull_request.commits || 1 }} --to $SHA
149147
format:
150-
needs:
151-
- commitlint
152-
- gitguardian
153-
- preflight
148+
needs: preflight
154149
runs-on: ubuntu-latest
155150
steps:
156151
- id: checkout
@@ -183,10 +178,7 @@ jobs:
183178
config-path: .dprint.jsonc
184179
dprint-version: ${{ steps.version.outputs.result }}
185180
lint:
186-
needs:
187-
- commitlint
188-
- gitguardian
189-
- preflight
181+
needs: preflight
190182
runs-on: ubuntu-latest
191183
steps:
192184
- id: checkout
@@ -212,10 +204,6 @@ jobs:
212204
name: Check lint status
213205
run: yarn check:lint
214206
spelling:
215-
needs:
216-
- commitlint
217-
- gitguardian
218-
- preflight
219207
runs-on: ubuntu-latest
220208
steps:
221209
- id: checkout
@@ -233,10 +221,7 @@ jobs:
233221
treat_flagged_words_as_errors: true
234222
verbose: true
235223
typescript:
236-
needs:
237-
- commitlint
238-
- gitguardian
239-
- preflight
224+
needs: preflight
240225
runs-on: ubuntu-latest
241226
env:
242227
VITEST_REPORT: ./.vitest-reports/typecheck.blob.json
@@ -273,10 +258,7 @@ jobs:
273258
name: ${{ format('typecheck-{0}.blob.json', env.SHA) }}
274259
path: ${{ env.VITEST_REPORT }}
275260
test:
276-
needs:
277-
- commitlint
278-
- gitguardian
279-
- preflight
261+
needs: preflight
280262
runs-on: ubuntu-latest
281263
strategy:
282264
fail-fast: false

0 commit comments

Comments
 (0)