fix(actions): Adds actions to lint ansible and yaml

This commit is contained in:
Thomas Maurice 2024-02-20 18:17:02 +01:00
parent d20db64817
commit 43e7b6850d
Signed by: thomas
GPG key ID: 1D577F50583032A6
17 changed files with 303 additions and 38 deletions

View file

@ -0,0 +1,28 @@
---
name: "Pull request: build & lint"
# yamllint disable-line rule:truthy
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: "Creates virtual environment"
run: make venv
- name: Activate virtualenv
run: |
source venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install galaxy requirements
run: ansible-galaxy install -r requirements.yml
- name: "Run YAML linting"
run: yamllint -c .yamllint.yml .
- name: "Run Ansible linting"
run: ansible-lint