-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott Gibb
authored and
Scott Gibb
committed
Nov 18, 2023
1 parent
a218048
commit 480b3db
Showing
2 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,57 @@ | ||
--- | ||
|
||
name: Static Analysis | ||
name: Static Analysis | ||
on: [push] | ||
|
||
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" | ||
find . -type f -name "*.sh" -print0 | xargs -0 shellcheck | ||
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" | ||
find . -type f -name "*.sh" -print0 | xargs -0 shellcheck | ||
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" | ||
find . -type f -name "*.md" -print0 | xargs -0 markdownlint | ||
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" | ||
find . -type f -name "*.md" -print0 | xargs -0 markdownlint | ||
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" | ||
find . -type f -name "*.yml" -print0 | xargs -0 yamllint | ||
find . -type f -name "*.yaml" -print0 | xargs -0 yamllint | ||
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" | ||
find . -type f -name "*.yml" -print0 | xargs -0 yamllint | ||
find . -type f -name "*.yaml" -print0 | xargs -0 yamllint | ||
Python_Lint_Check: | ||
name: Python Lint Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install pylint | ||
run: | | ||
pip install pylint | ||
- name: Run Pylint | ||
run: | | ||
echo "Checking source files with pylint" | ||
pylint --fail-under=4 **/*.py | ||
Python_Lint_Check: | ||
name: Python Lint Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install pylint | ||
run: | | ||
pip install pylint | ||
- name: Run Pylint | ||
run: | | ||
echo "Checking source files with pylint" | ||
pylint --fail-under=4 **/*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters