ci: Use supported ansible-lint action; run ansible-lint against the collection #445
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: Run Ansible Check on Ubuntu | |
on: [push, pull_request] | |
jobs: | |
ubuntu-latest: | |
runs-on: ubuntu-latest | |
steps: | |
# Important: This sets up your GITHUB_WORKSPACE environment variable | |
- name: checkout PR | |
uses: actions/checkout@v4 | |
- name: ansible check with ubuntu:latest | |
uses: roles-ansible/check-ansible-ubuntu-latest-action@master | |
with: | |
group: local | |
hosts: localhost | |
targets: "tests/tests_*.yml" | |
ubuntu-20: | |
runs-on: ubuntu-latest | |
steps: | |
# Important: This sets up your GITHUB_WORKSPACE environment variable | |
- name: checkout PR | |
uses: actions/checkout@v4 | |
- name: ansible check with ubuntu:20 (focal) | |
uses: roles-ansible/check-ansible-ubuntu-focal-action@master | |
with: | |
group: local | |
hosts: localhost | |
targets: "tests/tests_*.yml" |