forked from isdi-coders-2023/Chanquetes-Fiesteros-202301-mal
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1.18 KB
/
audit.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
name: Code audit
on: push
jobs:
audit:
runs-on: ubuntu-latest
name: Code audit
steps:
- name: ⬇ Git checkout
uses: actions/checkout@v2
- name: ❓ Check if .editorconfig exists
uses: andstor/file-existence-action@v1
with:
files: '.editorconfig'
- name: ✅ EditorConfig validation
uses: snow-actions/[email protected]
- name: 🙈 Ensure node_modules is ignored by Git
uses: dkershner6/gitignore-parser@v1
with:
must_deny: 'node_modules'
- name: 💾 Install modules
run: npm ci
- name: 🔍 ESLint validation
run: npx eslint --ignore-path .gitignore .
- name: 📏 Check commit message length
uses: gsactions/commit-message-checker@v1
with:
pattern: '^[^#].{10,74}'
error: 'The commit message length must be between 10 and 74'
excludeDescription: 'true' # optional: this excludes the description body of a pull request
excludeTitle: 'true' # optional: this excludes the title of a pull request
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request