-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.28 KB
/
Static Analysis.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: Static Analysis
on: [push]
jobs:
Shell_Check:
name: Shell Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt-get install -y shellcheck
- name: Shell Check
run: |
echo "Checking shell scripts"
shellcheck **/**/*.sh
Markdown_Lint_Check:
name: Markdown Lint Check
runs-on: ubuntu-latest
steps:
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- name: Checkout code
uses: actions/checkout@v2
- name: Run markdownlint
run: |
echo "Checking Markdown files"
markdownlint '**/**/*.md'
YAML_Lint_Check:
name: YAML Lint Check
runs-on: ubuntu-latest
steps:
- name: Install yamllint
run: sudo apt install yamllint
- name: Checkout code
uses: actions/checkout@v2
- name: Run yamllint
run: |
echo "Checking YAML files"
yamllint -c .yamllint.yaml .github/**/**.yaml
yamllint -c .yamllint.yaml **/**/**.yml