forked from UnderGreen/ansible-role-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 1.56 KB
/
debian.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: Debian
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
python3:
runs-on: ubuntu-latest
strategy:
matrix:
molecule_distro:
- debian9
- debian10
mongodb_version:
- '5.0'
- '4.4'
- '4.2'
- '4.0'
- '3.6'
exclude:
- molecule_distro: debian10
mongodb_version: '3.6'
- molecule_distro: debian10
mongodb_version: '4.0'
env:
MONGODB_VERSION: ${{ matrix.mongodb_version }}
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare tests
run: pip install -r requirements.txt
- name: Run default test
run: export "PATH=/home/runner/.local/bin:$PATH" && molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
- name: Run default test with enabled authentication
run: export "PATH=/home/runner/.local/bin:$PATH" && AUTH_STATE=enabled molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
- name: Run cluster test
run: export "PATH=/home/runner/.local/bin:$PATH" && molecule test -s cluster
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
- name: Run cluster test with enabled authentication
run: export "PATH=/home/runner/.local/bin:$PATH" && AUTH_STATE=enabled molecule test -s cluster
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'