Skip to content

Commit 5cdfd83

Browse files
committed
Add CI workflow to validate code
Add CI workflow to validate action code Signed-off-by: Kostis Papazafeiropoulos <papazof@gmail.com>
1 parent 4d2bda7 commit 5cdfd83

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

.github/linters/typos.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[default.extend-words]
2+
SEH = "SEH"
3+
ser = "ser"
4+
nd = "nd"
5+
6+
[files]
7+
extend-exclude = [
8+
"resources/*",
9+
]

.github/workflows/validate.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Validate action code
2+
3+
on: push
4+
5+
jobs:
6+
linter-typos:
7+
name: Spell Check Repo
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v6
12+
13+
- name: Spell check
14+
uses: crate-ci/typos@master
15+
with:
16+
config: .github/linters/typos.toml
17+
18+
linter-super-linter:
19+
name: Lint Python/Shell/Dockerfiles/GHActions/Markdown/YAML/JS
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
packages: read
24+
statuses: write
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@v6
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Run super-linter
32+
uses: super-linter/super-linter@v8
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: false
36+
VALIDATE_ALL_CODEBASE: true
37+
VALIDATE_PYTHON_RUFF: true
38+
VALIDATE_BASH: true
39+
VALIDATE_SHELL_SHFMT: true
40+
VALIDATE_DOCKERFILE_HADOLINT: true
41+
VALIDATE_GITHUB_ACTIONS: true
42+
VALIDATE_MARKDOWN: true
43+
VALIDATE_YAML: true
44+
VALIDATE_JAVASCRIPT_ES: true

0 commit comments

Comments
 (0)