File tree 4 files changed +2709
-1003
lines changed
4 files changed +2709
-1003
lines changed Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
lint :
17
- name : Javascript standard lint
17
+ name : Lint commit messages and code
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : Checkout repository
21
21
uses : actions/checkout@v4
22
22
with :
23
23
persist-credentials : false
24
24
show-progress : false
25
+ fetch-depth : 0
25
26
26
27
- name : setup node
27
28
uses : actions/setup-node@v4
28
29
with :
29
30
node-version : 20
30
31
cache : npm
31
- - run : npm clean-install
32
- - run : npm run lint
32
+
33
+ - name : Install npm dependencies
34
+ run : npm clean-install
35
+
36
+ - name : Validate current commit (last commit) with commitlint
37
+ if : github.event_name == 'push'
38
+ run : npx commitlint --last --verbose
39
+
40
+ - name : Validate PR commits with commitlint
41
+ if : github.event_name == 'pull_request'
42
+ run : npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
43
+
44
+ - name : Lint code
45
+ run : npm run lint
33
46
34
47
unittest :
35
48
name : unit tests
Original file line number Diff line number Diff line change
1
+ export default {
2
+ extends : [ '@commitlint/config-conventional' ] ,
3
+ rules : {
4
+ // disable max body line length - otherwise dependabot can error
5
+ 'body-max-line-length' : [ 0 ] ,
6
+ } ,
7
+ } ;
You can’t perform that action at this time.
0 commit comments