-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.47 KB
/
ansible-test.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
name: CI
on:
#- pull_request
- push
jobs:
# sanity:
# runs-on: ubuntu-latest
# steps:
#
# - name: Check out code
# uses: actions/checkout@master
# #with:
# # path: ansible_collections/community/zabbix
#
# - name: Set up Python 3.6
# uses: actions/setup-python@v1
# with:
# python-version: 3.6
#
# - name: Install ansible-base
# run: pip install git+https://github.com/ansible-collection-migration/ansible-base.git --disable-pip-version-check
#
# - name: Run sanity tests
# run: ansible-test sanity --docker -v --color --python 3.6
integration:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
with:
path: ansible_collections/community/zabbix
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: pip install docker-compose zabbix-api
- name: zabbix container server provisioning
run: docker-compose -f ansible_collections/community/zabbix/docker-compose.yml up -d
- name: Install ansible-base
run: pip install git+https://github.com/ansible-collection-migration/ansible-base.git --disable-pip-version-check
- name: run integration test
run: |
cd ansible_collections/community/zabbix
ansible-test integration -v --color --retry-on-error --continue-on-error --diff