parallel #2
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: Lint | |
on: | |
push: | |
branches: '**' | |
jobs: | |
setup: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10.12" | |
- name: Install Python dependencies | |
run: pip install --no-cache-dir --user pylint mypy flake8 | |
- name: Setup Terraform linter | |
uses: terraform-linters/setup-tflint@v4 | |
with: | |
tflint_version: v0.50.3 | |
- name: Initialize Terraform linter | |
run: tflint --init | |
working-directory: ./tests/setup | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
lint-markdown: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint Markdown files | |
uses: articulate/actions-markdownlint@v1 | |
with: | |
files: '**/*.md' | |
ignore: node_modules | |
version: 0.28.1 | |
lint-shell: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint shell scripts | |
uses: ludeeus/action-shellcheck@master | |
lint-docker: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint Dockerfiles | |
uses: hadolint/[email protected] | |
with: | |
dockerfile: Dockerfile | |
lint-terraform: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint Terraform testing infrastructure | |
run: tflint | |
working-directory: ./tests/setup | |
lint-ansible: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint ansible testing playbook | |
uses: ansible/ansible-lint@main | |
lint-python-pylint: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint Python files with pylint | |
run: pylint **/*.py | |
lint-python-mypy: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint Python files with mypy | |
run: mypy . | |
lint-python-flake8: | |
runs-on: self-hosted | |
needs: setup | |
steps: | |
- name: Lint Python files with flake8 | |
run: flake8 . |