Skip to content

markdowns left

markdowns left #114

Workflow file for this run

---
name: "Style"
on: # yamllint disable-line rule:truthy
push:
branches: "**"
jobs:
setup:
runs-on: "self-hosted"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v3"
with:
python-version: "3.10.12"
- name: "Install Python dependencies"
run: |
pip install --no-cache-dir --user \
pylint==3.2.4 mypy==1.10.1 flake8==7.1.0 yamllint==1.35.1
run-markdown-lint:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint Markdown files"
uses: "articulate/actions-markdownlint@v1"
with:
version: "0.41.0"
run-yaml-lint:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint YAML files"
run: "yamllint ."
run-shell-check:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint shell scripts"
uses: "ludeeus/action-shellcheck@master"
with:
version: "v0.10.0"
run-docker-hadolint:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint Dockerfiles"
uses: "hadolint/[email protected]"
with:
dockerfile: "Dockerfile"
recursive: true
run-terraform-tflint:
runs-on: "self-hosted"
needs: "setup"
steps:
- uses: "terraform-linters/setup-tflint@v4"
with:
tflint_version: "v0.51.1"
- name: "Lint Terraform testing infrastructure"
run: "tflint --init && tflint"
working-directory: "./tests/setup"
run-ansible-lint:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint ansible testing playbook"
uses: "ansible/[email protected]"
run-python-pylint:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint Python files with pylint"
run: "pylint $(find . -name '*.py')"
run-python-mypy:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint Python files with mypy"
run: "mypy --install-types --non-interactive $(find . -name '*.py')"
run-python-flake8:
runs-on: "self-hosted"
needs: "setup"
steps:
- name: "Lint Python files with flake8"
run: "flake8"