Skip to content

Commit

Permalink
Merge workflows back into one file
Browse files Browse the repository at this point in the history
  • Loading branch information
Daemonslayer2048 committed Jan 8, 2025
1 parent da16f97 commit 669df78
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 86 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/lint-ansible.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/lint-vale.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/lint-yaml.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
name: Lint

on:
push:

jobs:

ansible-lint:
name: Ansible
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

yaml-lint:
name: YAML
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 .

vale-lint:
name: Vale
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

0 comments on commit 669df78

Please sign in to comment.