Merge pull request #260 from alvarocarvajald/fence-agents-12sp5 #247
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 | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
paths: | |
- ansible/** | |
- requirements.txt | |
- .github/workflows/ansible.yml | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Important: This sets up your GITHUB_WORKSPACE environment variable | |
- uses: actions/checkout@v2 | |
- name: Install all requirements | |
run: | | |
python3 -m pip install --upgrade -r requirements.txt | |
ansible-galaxy install -r requirements.yml | |
- name: Run ansible static tests | |
run: | | |
make -n static-ansible | |
make SHELL='sh -x' static-ansible |