build(deps): bump actions/cache from 3.3.1 to 4.1.2 #595
Workflow file for this run
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 # feel free to pick your own name | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Important: This sets up your GITHUB_WORKSPACE environment variable | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- uses: actions/[email protected] | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi | |
ansible-galaxy collection install -r ansible-ipi-install/requirements.yml | |
- name: Lint Ansible Playbook | |
run: | | |
ansible-lint -p --force-color -c .ansible-lint ansible-ipi-install/playbook.yml | |
... |