Skip to content

Commit

Permalink
Tweak workflow lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Daemonslayer2048 committed Jan 8, 2025
1 parent da710ff commit da16f97
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 422 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lint-ansible.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Ansible Lint

on:
push:

jobs:

ansible-lint:
name: Ansible Lint
runs-on: ubuntu-latest

steps:
- name: Check out the codebase
uses: actions/checkout@v3

- name: Set up Python.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install ansible-lint
run: pip3 install ansible-lint ansible

- name: Version check
run: |
ansible --version
ansible-lint --version
- name: Run ansible-lint
run: ansible-lint
25 changes: 25 additions & 0 deletions .github/workflows/lint-vale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Vale Lint

on:
push:

jobs:

vale-lint:
name: Vale Lint
runs-on: ubuntu-latest

steps:
- name: Check out the codebase
uses: actions/checkout@v3

- name: Install vale
run: snap install vale

- name: Version check
run: |
vale --version
- name: Run yamllint
run: vale --glob='*.md' ./docs ./README.md
30 changes: 30 additions & 0 deletions .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: YAML Lint

on:
push:

jobs:

yaml-lint:
name: YAML Lint
runs-on: ubuntu-latest

steps:
- name: Check out the codebase
uses: actions/checkout@v3

- name: Set up Python.
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install yamllint
run: pip3 install yamllint

- name: Version check
run: |
yamllint --version
- name: Run yamllint
run: yamllint .
59 changes: 0 additions & 59 deletions .github/workflows/lint.yml

This file was deleted.

184 changes: 0 additions & 184 deletions .github/workflows/rocky8.yml

This file was deleted.

Loading

0 comments on commit da16f97

Please sign in to comment.