Merge pull request #15 from arnavrneo/dev #9
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
# .github/workflows/ansible-lint.yml | |
name: ansible-lint | |
on: | |
pull_request: | |
branches: ["main"] | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
name: Ansible Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ansible Lint | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python3-pip | |
pip install ansible-lint | |
- name: Linting the ansible role | |
working-directory: url-shortener/playbook/roles/docker | |
run: ansible-lint -p . --exclude=tests/ |