Skip to content

Commit 20e84db

Browse files
committed
ci: optimize CI workflows and enforce conventional commits
- Update continuous-integration.yml to run only on PRs and manual triggers - Add conventional commit enforcement workflow for PR quality
1 parent c11f6c6 commit 20e84db

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Continuous Integration
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
7-
branches: [main]
5+
branches: ["main"]
6+
7+
workflow_dispatch:
88

99
jobs:
1010
lint-and-typecheck:
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Conventional Commits
3+
4+
permissions:
5+
contents: read
6+
7+
on:
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
commit-lint:
14+
name: Verify Conventional Commits
15+
16+
# Skip this job if this is a release or dependabot PR
17+
if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--') && github.actor != 'dependabot[bot]')
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v6
24+
with: { fetch-depth: 0 }
25+
26+
- name: Check Commit Messages
27+
uses: wagoid/commitlint-github-action@v6
28+
with: { configFile: .commitlintrc.yml }

0 commit comments

Comments
 (0)