Skip to content

Commit

Permalink
Use GitHub actions matrix to more easily identify failing platforms (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcook254 authored Apr 20, 2024
1 parent 7382883 commit 1e4346d
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 76 deletions.
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.

0 comments on commit 1e4346d

Please sign in to comment.