Update check-directories.sh #7
Workflow file for this run
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
--- | |
name: Static Analysis | |
on: [push] | |
jobs: | |
XML_lint: | |
name: XML Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: sudo apt-get install -y libxml2-utils | |
- name: XML Lint | |
run: | | |
echo "Sticking <!DOCTYPE manifest SYSTEM \"default.dtd\"> at the top of default.xml" | |
echo "$(echo '<!DOCTYPE manifest SYSTEM "default.dtd">' | cat - default.xml)" > default.xml | |
cat default.xml | |
xmllint --valid --noout default.xml | |
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 |