Skip to content

Commit a687a22

Browse files
committed
chore: add Github Action to validate PR commits
1 parent 40105b0 commit a687a22

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr_commits.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
pull_request:
3+
branches: [ "main" ]
4+
types: [opened, synchronize]
5+
6+
jobs:
7+
validate:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
ref: ${{ github.head_ref }}
14+
15+
- uses: dart-lang/[email protected]
16+
17+
- name: Get Dependencies
18+
run: dart pub get
19+
20+
- name: Validate PR Commits
21+
run: VERBOSE=true dart run commitlint_cli --from="origin/${{ github.base_ref }}" --to="${{ github.head_ref }}" --config lib/commitlint.yaml

0 commit comments

Comments
 (0)