Skip to content

yamllint corrections #14

yamllint corrections

yamllint corrections #14

Workflow file for this run

name: Tests
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: '0 6 * * *'
env:
COLORTERM: 'yes'
TERM: 'xterm-256color'
PYTEST_ADDOPTS: '--color=yes'
jobs:
sanity:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.9.13", "3.10.10"]
steps:
- name: Check out code
uses: actions/checkout@v3
with:
path: ansible_collections/MozeBaltyk/AnsiColt/
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: 'pip'
- name: Create default collection path
run: |
mkdir -p /home/runner/.ansible/
ln -s /home/runner/work/MozeBaltyk/AnsiColt/ /home/runner/.ansible/collections
- 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: |
# 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: Auto Correct YAML lint errors
run: |
yamllint .