From 904891e84a58cd9691e972444ad417fb9f2c88ce Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 22 Oct 2023 20:41:32 +0200 Subject: [PATCH] Adding new linters --- .github/FUNDING.yml | 5 +++++ .github/workflows/j2lint-check.yml | 22 ++++++++++++++++++++++ .github/workflows/yamllint-check.yml | 22 ++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/j2lint-check.yml create mode 100644 .github/workflows/yamllint-check.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..fab5174 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,5 @@ +--- +# These are supported funding model platforms + +github: [do1jlr] +liberapay: L3D diff --git a/.github/workflows/j2lint-check.yml b/.github/workflows/j2lint-check.yml new file mode 100644 index 0000000..5037de5 --- /dev/null +++ b/.github/workflows/j2lint-check.yml @@ -0,0 +1,22 @@ +--- +name: Jinja2 Linting check + +# yamllint disable-line rule:truthy +on: [push, pull_request] + +jobs: + build: + name: Jinja2 Linting + runs-on: ubuntu-latest + + steps: + - name: 'checkout git repo' + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Run j2lint + uses: ansible-actions/j2lint-action@v0.0.1 + with: + target: "./" diff --git a/.github/workflows/yamllint-check.yml b/.github/workflows/yamllint-check.yml new file mode 100644 index 0000000..751e992 --- /dev/null +++ b/.github/workflows/yamllint-check.yml @@ -0,0 +1,22 @@ +--- +name: Yamllint check + +# yamllint disable-line rule:truthy +on: [push, pull_request] + +jobs: + build: + name: Yamllint + runs-on: ubuntu-latest + + steps: + - name: 'checkout git repo' + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Run yamllint + uses: ansible-actions/yamllint-action@v0.0.1 + with: + target: "./"