Skip to content

Commit

Permalink
Merge pull request #42 from DO1JLR/lnt
Browse files Browse the repository at this point in the history
improve linting actions
  • Loading branch information
DO1JLR authored Apr 10, 2024
2 parents a05108d + 89a9544 commit 7c325f8
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 26 deletions.
7 changes: 5 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
# See https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "weekly"
10 changes: 5 additions & 5 deletions .github/workflows/ansible-linting-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: 'checkout git repo'
uses: actions/checkout@v4.1.2
- name: Checkout git repo
uses: actions/checkout@v4
with:
lfs: true
submodules: true
fetch-depth: 0

- name: Run ansible-lint
uses: ansible-actions/ansible-lint-action@v1.0.3
uses: ansible-actions/ansible-lint-action@v1.0.2
with:
target: "site.yml"
target: "./"
python_dependency_file: 'requirements.txt'
22 changes: 22 additions & 0 deletions .github/workflows/j2lint-check.yml
Original file line number Diff line number Diff line change
@@ -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: "templates/"
22 changes: 22 additions & 0 deletions .github/workflows/yamllint-check.yml
Original file line number Diff line number Diff line change
@@ -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: "./"
19 changes: 0 additions & 19 deletions .github/workflows/yamllint.yaml

This file was deleted.

0 comments on commit 7c325f8

Please sign in to comment.