Skip to content

Commit

Permalink
parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
szachovy committed Jun 26, 2024
1 parent 4c604e7 commit e95d8d1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
39 changes: 35 additions & 4 deletions .github/workflows/lint.yml
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
Expand All @@ -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 .
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Run tests
name: Test

on:
push:
branches: '**'
on:
workflow_run:
workflows: ["Lint"]
types:
- completed

jobs:
tests:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: self-hosted
steps:
- name: Checkout repository
Expand Down

0 comments on commit e95d8d1

Please sign in to comment.