Add remote-execution plugin branch #2
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: CI | |
on: [push, pull_request] | |
env: | |
COLORTERM: 'yes' | |
TERM: 'xterm-256color' | |
PYTEST_ADDOPTS: '--color=yes' | |
jobs: | |
ansible-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3" | |
- name: Install ansible-lint | |
run: pip install 'ansible-lint<6' ansible | |
- name: Run tests | |
run: | | |
ansible-lint playbooks/ | |
ansible-lint roles/ | |
ansible-lint pipelines/ | |
molecule: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3" | |
- name: Install molecule | |
run: pip install 'molecule<6' ansible | |
- name: Run tests | |
run: | | |
for roledir in roles/*/molecule; do | |
pushd $(dirname $roledir) | |
molecule test | |
popd | |
done | |
vagrant: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: | |
- '2.7' | |
- '3.0' | |
- '3.1' | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
working-directory: vagrant | |
- name: Run tests | |
run: bundle exec rake | |
working-directory: vagrant |