Skip to content

Commit 66bbe71

Browse files
committed
Add Ubuntu into test matrix
1 parent 5ad2d6d commit 66bbe71

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/ubuntu.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Ubuntu
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
python3:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
molecule_distro:
17+
- ubuntu1604
18+
- ubuntu1804
19+
mongodb_version:
20+
- '4.2'
21+
- '4.0'
22+
- '3.6'
23+
env:
24+
MONGODB_VERSION: ${{ matrix.mongodb_version }}
25+
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
- name: Prepare tests
30+
run: pip install -r requirements.txt
31+
- name: Run default test
32+
run: molecule test
33+
env:
34+
PY_COLORS: '1'
35+
ANSIBLE_FORCE_COLOR: '1'
36+
- name: Run default test with enabled authentication
37+
run: AUTH_STATE=enabled molecule test
38+
env:
39+
PY_COLORS: '1'
40+
ANSIBLE_FORCE_COLOR: '1'
41+
- name: Run cluster test
42+
run: molecule test -s cluster
43+
env:
44+
PY_COLORS: '1'
45+
ANSIBLE_FORCE_COLOR: '1'
46+
- name: Run cluster test with enabled authentication
47+
run: AUTH_STATE=enabled molecule test -s cluster
48+
env:
49+
PY_COLORS: '1'
50+
ANSIBLE_FORCE_COLOR: '1'

0 commit comments

Comments
 (0)