Skip to content

test yamllint

test yamllint #27

Workflow file for this run

---
name: CI
on:
push:
branches: [master, main, "release/v*"]
pull_request:
branches: [master, main, "release/v*"]
jobs:
run-ansible-lint:
runs-on: ubuntu-latest
steps:
- name: run-ansible-lint
uses: ansible/ansible-lint@main
run-yamllint:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v3
- name: 🚀 Run yamllint
run: |
yamllint .
#- name: Auto Correct YAML lint errors
# run: |
# echo '# Correct no new line character at the end of file'
# sed -i -e '$a\' playbooks/tasks/connectRepo.yml
# echo '# Correct trailing spaces"
# sed -i -e 's/[ \t]*$//' playbooks/tasks/connectRepo.yml
# - name: Set up Python ${{ matrix.python_version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python_version }}
# cache: 'pip'
# - name: Install yamllint, ansible and molecule
# run: |
# python -m pip install --upgrade pip
# pip install yamllint ansible-core flake8 ansible-lint voluptuous
# - name: Auto Correct YAML lint errors
# run: |
# yamllint .