-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.17 KB
/
molecule-install-xnat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test install_xnat playbook
on:
pull_request:
paths:
- "roles/xnat/**"
- "roles/xnat_container_service/**"
- ".github/workflows/molecule.yml"
- ".github/workflows/molecule-install-xnat.yml"
release:
types: [published]
jobs:
molecule:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
scenario:
- centos7_install_xnat
- rocky9_install_xnat
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
steps:
- name: Check out the codebase
uses: actions/checkout@v4
with:
path: ansible_collections/mirsg/infrastructure
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install test dependencies
run: |
sudo apt-get update && sudo apt-get -y install rsync
python3 -m pip install --upgrade pip
python3 -m pip install ansible molecule molecule-plugins[docker] docker requests
- name: Test with molecule
run: |
cd ansible_collections/mirsg/infrastructure/tests
molecule converge --scenario-name "${{ matrix.scenario }}"