Skip to content

Commit

Permalink
ci: use ubuntu20 for cgroup compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
trfore committed Jun 6, 2024
1 parent 71f02a9 commit 6ea000f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- distro: centos8
experimental: true
molecule_scenario: "-s default"
uses: trfore/ansible-role/.github/workflows/test_ansible.yml@main # remote repo
uses: ./.github/workflows/test.yml
with:
distro: ${{ matrix.distro }}
experimental: ${{ matrix.experimental }}
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Molecule Test
on:
workflow_call:
inputs:
distro:
required: true
type: string
experimental:
default: false
required: false
type: boolean
molecule_glob:
default: "molecule/*/molecule.yml"
required: false
type: string
molecule_scenario:
default: "" # ex: "-s SCENARIO_NAME"
required: false
type: string
requirements_file:
default: "requirements.txt"
required: false
type: string
jobs:
molecule:
runs-on: ubuntu-20.04
continue-on-error: ${{ inputs.experimental }}
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
MOLECULE_GLOB: ${{ inputs.molecule_glob }}
MOLECULE_NAME: ${{ inputs.distro }}
MOLECULE_IMAGE: trfore/docker-${{ inputs.distro }}-systemd
steps:
- name: Check out codebase
uses: actions/checkout@v4

- name: Setup python 3
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install dependencies
run: pip install -r ${{ inputs.requirements_file }}

- name: Run molecule test
run: molecule test ${{ inputs.molecule_scenario }}

0 comments on commit 6ea000f

Please sign in to comment.