-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
|
||
name: Lint | ||
|
||
on: | ||
on: | ||
push: | ||
branches: '**' | ||
|
||
jobs: | ||
lint: | ||
setup: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout repository | ||
|
@@ -31,33 +30,65 @@ jobs: | |
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 . |
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