Skip to content

Commit

Permalink
Project Refactoring and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottGibb committed Nov 5, 2023
1 parent 071c9ca commit 68a1373
Show file tree
Hide file tree
Showing 12 changed files with 753 additions and 17 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/Static Analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
# This is the Static Analysis workflow, in which we check the code for errors and warnings.
name: Static Analysis

Check failure on line 3 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

3:5 [indentation] wrong indentation: expected 0 but found 4

Check failure on line 4 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

4:1 [trailing-spaces] trailing spaces
on: [push]

Check warning on line 5 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

5:5 [truthy] truthy value should be one of [false, true]

Check failure on line 6 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

6:1 [trailing-spaces] trailing spaces
jobs:

Check failure on line 8 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

8:1 [trailing-spaces] trailing spaces
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

Check failure on line 21 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

21:1 [trailing-spaces] trailing spaces
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'

Check failure on line 34 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

34:1 [trailing-spaces] trailing spaces
Python_Lint_Check:
name: Python Lint Check
runs-on: ubuntu-latest
steps:
- name: Install pylint
run: |
pip install pylint
- name: Checkout code
uses: actions/checkout@v2
- name: Run pylint
run: |
echo "Checking Python files with pylint"
pylint --fail-under=9 **/**/*.py

Check failure on line 48 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

48:1 [trailing-spaces] trailing spaces
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

Check failure on line 60 in .github/workflows/Static Analysis.yaml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

60:66 [new-line-at-end-of-file] no new line character at the end of file
8 changes: 8 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"line-length": {
"line_length": 800,
"code_blocks": false,
"tables": true
},
"no-inline-html": false
}
Loading

0 comments on commit 68a1373

Please sign in to comment.