Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub actions matrix for CI #5

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ jobs:
molecule:
name: Molecule Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- name: ubuntu2204
image: docker.io/geerlingguy/docker-ubuntu2204-ansible:latest
- name: debian12
image: docker.io/geerlingguy/docker-debian12-ansible
- name: fedora39
image: docker.io/geerlingguy/docker-fedora39-ansible
- name: fedora38
image: docker.io/geerlingguy/docker-fedora38-ansible
- name: centosstream9
image: ghcr.io/bcook254/docker-centosstream9-ansible
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
Expand All @@ -55,8 +69,10 @@ jobs:
run: python -m pip install ansible molecule molecule-plugins[docker] docker

- name: Run Molecule tests.
run: molecule test --driver-name docker --scenario-name all
run: molecule test --driver-name docker --scenario-name ci
env:
PLATFORM_NAME: ${{ matrix.platform.name }}
PLATFORM_IMAGE: ${{ matrix.platform.image }}
VAULTWARDEN_VERSION: '1.30.5'
VAULTWARDEN_URL: ${{ secrets.VAULTWARDEN_URL }}
PY_COLORS: '1'
Expand Down
75 changes: 0 additions & 75 deletions molecule/all/molecule.yml

This file was deleted.

File renamed without changes.
43 changes: 43 additions & 0 deletions molecule/ci/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
dependency:
name: galaxy
options:
requirements-file: requirements.yml
driver:
name: podman
platforms:
- name: ${PLATFORM_NAME}
image: ${PLATFORM_IMAGE}
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
provisioner:
inventory:
group_vars:
all:
vaultwarden_version: "${VAULTWARDEN_VERSION}"
vaultwarden_url: "${VAULTWARDEN_URL}"
vaultwarden_url_checksum: "sha256:{{ vaultwarden_url }}.sha256"
host_vars:
centosstream9:
vaultwarden_packages:
- openssl
- ca-certificates
- curl-minimal
- mariadb-devel
- libpq
name: ansible
config_options:
defaults:
interpreter_python: auto_silent
callbacks_enabled: yaml
ssh_connection:
pipelining: false
verifier:
name: ansible
lint: |
set -e
ansible-lint .
File renamed without changes.
File renamed without changes.
File renamed without changes.