-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (35 loc) · 1.13 KB
/
sanity_test_ci.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
name: "appdynamics.sanity.test"
on:
pull_request:
jobs:
sanity_test:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
strategy:
fail-fast: true
max-parallel: 4
matrix:
distro:
- centos7
# - debian10
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install ansible molecule-docker docker yamllint ansible-lint flake8 lxml
- name: Build the collection
run: |
collection_file=$(basename $(ansible-galaxy collection build -f | awk -F" " '{print $NF}'))
echo "COLLECTION_FILE=$collection_file" >> $GITHUB_ENV
- name: Install the collection
run: ansible-galaxy collection install ${{ env.COLLECTION_FILE }}
- name: Sanity test the collection
run: |
cd /home/runner/.ansible/collections/ansible_collections/appdynamics/agents
ansible-test sanity --docker default -v