forked from sportsru/ansible-role-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.76 KB
/
amazon_linux.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
58
59
60
61
62
name: Test ansible role on Amazon Linux
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
python2:
runs-on: ubuntu-latest
container: python:2.7.18-alpine
strategy:
matrix:
distribution:
- amazonlinux
dist_version:
- 2-builded
mongodb_version:
- '4.2'
- '4.0'
- '3.6'
env:
DISTRIBUTION: ${{ matrix.distribution }}
DIST_VERSION: ${{ matrix.dist_version }}
MONGODB_VERSION: ${{ matrix.mongodb_version }}
DOCKER_PRIVILEGED: true
PYTHON_VERSION: '2'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare tests
run: |
apk add --no-cache bash
bash tests/scripts/before_install.sh
- name: Run test on single host and security authorization disabled
run: bash tests/scripts/single.sh disabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/single_cleanup.sh disabled python
- name: Run test on single host and security authorization enabled
run: bash tests/scripts/single.sh enabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/single_cleanup.sh enabled python
- name: Run test replicaSet on three hosts and security authorization disabled
run: bash tests/scripts/rs.sh disabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/rs_cleanup.sh disabled python
- name: Run test replicaSet on three hosts and security authorization enabled
run: bash tests/scripts/rs.sh enabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/rs_cleanup.sh enabled python