Skip to content

Commit 650c4c6

Browse files
committed
Add GitHub Super-Linter workflow (#2)
Implemented a GitHub Actions workflow for code linting with two jobs: - Super-Linter job for general code quality checks - Dedicated Markdown linter job for documentation files Configuration based on examples from unikraft/docs and sandblaster repositories. VALIDATE_MARKDOWN is disabled in the main linter to avoid duplicate checks.
1 parent e6fa062 commit 650c4c6

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/linter.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Linter
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
superlinter:
7+
name: Super Linter
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Code
12+
uses: actions/checkout@v3
13+
with:
14+
# Full git history is needed to get a proper list of changed files within `super-linter`
15+
fetch-depth: 0
16+
17+
- name: Lint Code Base
18+
uses: github/super-linter@v4
19+
env:
20+
# Don't check already existent files
21+
VALIDATE_ALL_CODEBASE: false
22+
VALIDATE_GITHUB_ACTIONS: false
23+
VALIDATE_MARKDOWN: false
24+
DEFAULT_BRANCH: main
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
27+
markdownlint:
28+
name: Markdown Linter
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- name: Checkout Code
33+
uses: actions/checkout@v3
34+
with:
35+
fetch-depth: 0
36+
37+
- name: Get Changed Files
38+
uses: tj-actions/changed-files@v39
39+
id: changed-files
40+
with:
41+
files: '**/*.md'
42+
separator: " "

0 commit comments

Comments
 (0)