Drop almalinux8 boxes for 3.13 & nightly #2074
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@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3" | |
- name: Install ansible-lint | |
run: pip install ansible-lint ansible | |
- name: Run tests | |
run: | | |
ansible-lint playbooks/ | |
ansible-lint roles/ | |
ansible-lint pipelines/ | |
molecule: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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@v4 | |
- 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 |