-
Notifications
You must be signed in to change notification settings - Fork 41
62 lines (54 loc) · 1.52 KB
/
commit-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Commit Lint
on:
push:
branches:
- master
- develop
- fix-release*
pull_request:
branches:
jobs:
commit-message-lint:
strategy:
matrix:
node-version: [14.x]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Deps
run: |
npm install -g commitlint-plugin-function-rules @commitlint/cli
npm install --save-dev commitlint-plugin-function-rules @commitlint/cli
- uses: wagoid/commitlint-github-action@v5
id: commitlint
env:
NODE_PATH: ${{ github.workspace }}/node_modules
with:
configFile: /github/workspace/.github/commitlint.config.js
# branch-naming-lint:
# strategy:
# matrix:
# os: [ ubuntu-latest ]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: deepakputhraya/action-branch-name@master
# with:
# regex: '([a-z])+\-([a-z])+'
# allowed_prefixes: 'build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test'
# ignore: master,develop,release
# min_length: 5
# max_length: 30