This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
chore(deps): update dependency ansible-lint to v6.20.1 #290
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ansible Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
env: | |
ANSIBLE_FORCE_COLOR: 1 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python 3 | |
id: setup-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install packages | |
run: sudo apt install python3-dev libkrb5-dev krb5-user | |
- name: Install pipenv | |
run: pip3 install pipenv | |
- name: Cache virtual environment | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/virtualenvs | |
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} | |
- name: Install dependencies | |
run: pipenv install --dev | |
- name: Run Ansible lint | |
run: pipenv run ansible-lint workstations.yml |