Update comment #429
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: Build | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
ansible-lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9.20' | |
- name: Set up Ansible | |
run: | | |
pip install -r requirements.txt | |
bin/setup | |
- name: Ansible Lint | |
run: ansible-lint playbooks/*.yml --exclude community | |
playbook-tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9.20' | |
- name: Set up Ansible | |
run: | | |
pip install -r requirements.txt | |
bin/setup | |
- name: Cache Ruby binary compiling | |
id: cache-ruby | |
uses: actions/cache@v3 | |
with: | |
path: ~/.rbenv | |
key: ${{ runner.os }}-ruby-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-ruby- | |
${{ runner.os }}- | |
- name: Uninstall conflicting packages | |
run: sudo apt remove nginx libgd3 | |
- name: Test Playbooks | |
run: ansible-playbook tests/suite.yml --limit test --connection local |