-
Notifications
You must be signed in to change notification settings - Fork 20
65 lines (60 loc) · 1.89 KB
/
java_agent_ci_instrumentation.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
63
64
65
name: "appdynamics.agents.java(instrumentation)"
on:
push:
paths:
- 'roles/java/**'
- 'roles/instrument_*/**'
- 'molecule/java-tomcat/**'
- 'molecule/base-local.yml'
- '.github/workflows/java_agent_ci_instrumentation.yml'
- 'roles/common/**'
pull_request:
paths:
- 'roles/instrument_*/**'
- 'roles/java/**'
- 'molecule/java-tomcat/**'
- 'molecule/base-local.yml'
- '.github/workflows/java_agent_ci_instrumentation.yml'
- 'roles/common/**'
jobs:
molecule:
runs-on: ubuntu-20.04
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
strategy:
fail-fast: false
matrix:
scenario:
- java-tomcat
- java-jboss
- java-tomcat-single-app-mode
ansible_ver:
- "==2.9.*"
- "==2.10.*"
- ">=2.10" # latest
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: |
sudo apt update && sudo apt install python3-apt -y
pip3 install "ansible${{ matrix.ansible_ver }}" 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: Run role tests
run: >-
molecule --version &&
ansible --version &&
molecule --base-config molecule/base-local.yml --debug test -s ${{ matrix.scenario }}
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'