Add docker-build.yml

This commit is contained in:
d3vyce
2023-04-02 09:57:43 -04:00
parent 9a23f7f0e3
commit fcedd315b8
5 changed files with 18 additions and 0 deletions

18
linting/ansible-lint.yml Normal file
View File

@ -0,0 +1,18 @@
name: Ansible-lint
on: [push]
jobs:
ansible-lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python 3.11
run: |
apt update
apt install -y python3 python3-pip
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install ansible-lint
- name: Analysing the code with ansible-lint
run: find . -type f -name "*.yml" | ansible-lint

18
linting/clint.yml Normal file
View File

@ -0,0 +1,18 @@
name: Clint
on: [push]
jobs:
clint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python 3.11
run: |
apt update
apt install -y python3 python3-pip
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install cpplint
- name: Analysing the code with ansible-lint
run: find . -type f -name "*.c" -o -name "*.cpp" | xargs cpplint

18
linting/pylint.yml Normal file
View File

@ -0,0 +1,18 @@
name: Pylint
on: [push]
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python 3.11
run: |
apt update
apt install -y python3 python3-pip
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: find . -type f -name "*.py" | xargs pylint

14
linting/shellcheck.yml Normal file
View File

@ -0,0 +1,14 @@
name: Shellcheck
on: [push]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up shellcheck
run: |
apt update
apt install -y shellcheck
- name: Analysing the code with shellcheck
run: find . -type f -name "*.sh" | xargs shellcheck -S warning