-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (53 loc) · 1.06 KB
/
linter.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
47
48
49
50
51
52
53
54
55
56
57
58
---
name: code linter
on:
schedule:
- cron: "40 3 * * 0"
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
push:
branches:
- 'main'
- 'feature/**'
- '!doc/**'
paths:
- "!Makefile"
- "!README.md"
- "tasks/**"
pull_request:
branches:
- 'main'
- 'feature/**'
- '!doc/**'
paths:
- "!Makefile"
- "!README.md"
- "tasks/**"
jobs:
lint:
name: linting
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: lint
uses: docker://ghcr.io/github/super-linter:slim-v4
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GH_REGISTRY_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_ANSIBLE: true
# VALIDATE_MARKDOWN: true
VALIDATE_YAML: true
...