-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.66 KB
/
papermerge.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
45
46
47
48
49
50
51
52
53
54
55
56
57
---
name: "stehessel.server.papermerge"
on:
push:
paths:
- "roles/papermerge/**"
- "molecule/papermerge/**"
- ".github/workflows/papermerge.yml"
pull_request:
paths:
- "roles/papermerge/**"
- "molecule/papermerge/**"
- ".github/workflows/papermerge.yml"
workflow_dispatch:
jobs:
molecule:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
strategy:
fail-fast: true
matrix:
molecule:
- { "distro":"ubuntu1604", "command":"/sbin/init" }
- { "distro":"ubuntu1804", "command":"/lib/systemd/systemd" }
- { "distro":"ubuntu2004", "command":"/lib/systemd/systemd" }
collection_role:
- papermerge
steps:
- name: Check out code
uses: actions/checkout@v2
with:
path: ansible_collections/stehessel/server
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set up Docker
uses: docker-practice/actions-setup-docker@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ansible ansible-lint docker flake8 molecule[docker] pytest-testinfra yamllint
ansible-galaxy collection install community.general
- name: Run role tests
run: >-
molecule --version &&
ansible --version &&
MOLECULE_COMMAND=${{ matrix.molecule.command }}
MOLECULE_DISTRO=${{ matrix.molecule.distro }}
molecule --debug test -s ${{ matrix.collection_role }}
working-directory: ./ansible_collections/stehessel/server