-
Notifications
You must be signed in to change notification settings - Fork 23
46 lines (43 loc) · 1.14 KB
/
linters.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
name: Linters
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Spellcheck
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: rojopolis/[email protected]
name: Spellcheck
with:
config_path: .github/configs/spellcheck.yml
commitlint:
name: Commitlint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Commitlint
run: sudo npm install -g @commitlint/cli
- name: Lint commits
run: commitlint
--config ${{ github.workspace }}/.github/configs/commitlint.config.js
--help-url 'https://stackoverflow.com/a/45974435'
--from HEAD~1 --to HEAD
--verbose
markdown-link-check:
name: LinkCheck
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: "yes"
config-file: ".github/configs/linkcheck.json"