Skip to content

Commit 7dd8175

Browse files
OttoAllmendingeraider
andcommitted
ci(root): move commit lint step into code-quality job matrix
Ticket: BTC-1821 Co-authored-by: aider <[email protected]>
1 parent 623e775 commit 7dd8175

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ jobs:
5555
if: steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
5656
run: yarn install --with-frozen-lockfile --ignore-scripts
5757

58-
- name: Lint Commit Messages
59-
run: |
60-
GITHUB_REPO_BRANCH=$GITHUB_BASE_REF yarn run check-commits
61-
6258
- name: Check In-Repo Package Versions
6359
run: yarn run check-versions
6460

@@ -92,7 +88,7 @@ jobs:
9288
strategy:
9389
fail-fast: false
9490
matrix:
95-
check: ['lint', 'format']
91+
check: ['lint', 'format', 'commit-lint']
9692

9793
steps:
9894
- uses: actions/checkout@v4
@@ -125,6 +121,12 @@ jobs:
125121
if: matrix.check == 'format'
126122
run: yarn run check-fmt
127123

124+
- name: Lint Commit Messages
125+
if: matrix.check == 'commit-lint'
126+
run: |
127+
git fetch --unshallow origin $GITHUB_BASE_REF
128+
GITHUB_REPO_BRANCH=$GITHUB_BASE_REF yarn run check-commits
129+
128130
browser-test:
129131
runs-on: ubuntu-22.04
130132

0 commit comments

Comments
 (0)