Skip to content

Commit b89b952

Browse files
committed
Add generic linters
1 parent 00ba25f commit b89b952

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/check-generic.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Generic checks to ease collaboration:
2+
# - consistent file encoding in UNIX style
3+
# - whitespaces in all purposes files like markdown, yaml, etc
4+
name: Check Generic
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
jobs:
15+
editorconfig-checker:
16+
name: Run editorconfig-checker
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Run editorconfig-checker
22+
run: docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker
23+
24+
markdownlint:
25+
name: Run markdownlint
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
- name: Run markdownlint-cli2
31+
uses: DavidAnson/markdownlint-cli2-action@v13
32+
33+
yamllint:
34+
name: Run yamllint
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
- name: Run yamllint
40+
run: yamllint .

0 commit comments

Comments
 (0)