File tree Expand file tree Collapse file tree 4 files changed +462
-1
lines changed Expand file tree Collapse file tree 4 files changed +462
-1
lines changed Original file line number Diff line number Diff line change
1
+ {"extends": ["@insurgentlab/commitlint-config"]}
Original file line number Diff line number Diff line change 16
16
steps :
17
17
- name : Checkout project
18
18
uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
19
+ with :
20
+ fetch-depth : 0
19
21
- name : Use Node.js
20
22
uses : actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
21
23
with :
26
28
run : npm run lint
27
29
- name : Run tests
28
30
run : npm run test
31
+
32
+ # Ensure commitlint is working with HEAD version of our preset
33
+ - name : Validate current commit (last commit) with commitlint
34
+ if : github.event_name == 'push'
35
+ run : npx commitlint --from HEAD~1 --to HEAD --verbose
36
+ - name : Validate PR commits with commitlint
37
+ if : github.event_name == 'pull_request'
38
+ run : npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
39
+
29
40
- name : Upload coverage reports to Codecov
30
41
if : ${{ matrix.os == 'ubuntu-latest' }}
31
42
uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
You can’t perform that action at this time.
0 commit comments