Change script to run yamllint #295
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 | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
paths: | |
- ansible/** | |
- requirements.txt | |
- .github/workflows/ansible.yml | |
- Makefile | |
- tools/** | |
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 |