|
11 | 11 | paths: |
12 | 12 | - 'roles/icingaweb2/templates/**' |
13 | 13 | - 'molecule/ini-configuration-tests/**' |
| 14 | + - '.github/workflows/test_icingaweb2_ini_template.yml' |
| 15 | + - 'requirements*' |
14 | 16 | pull_request: |
15 | 17 | branches: |
16 | 18 | - 'feature/**' |
17 | 19 | - 'fix/**' |
18 | 20 | - '!doc/**' |
19 | 21 |
|
20 | 22 | jobs: |
21 | | - test_ini_template: |
| 23 | + test_ini_template_2_15: |
22 | 24 | runs-on: ubuntu-latest |
23 | 25 |
|
24 | 26 | env: |
|
30 | 32 | max-parallel: 1 |
31 | 33 | matrix: |
32 | 34 | distro: [ubuntu2204] |
33 | | - python: ['3.9', '3.10'] |
34 | | - ansible: ['2.13.10', '2.14.7'] |
| 35 | + python: ['3.9','3.10','3.11'] |
| 36 | + ansible: ['2.15'] |
| 37 | + scenario: [ini-configuration-tests] |
| 38 | + |
| 39 | + steps: |
| 40 | + - name: Check out code |
| 41 | + uses: actions/checkout@v4 |
| 42 | + |
| 43 | + - name: Set up Python |
| 44 | + uses: actions/setup-python@v5 |
| 45 | + with: |
| 46 | + python-version: ${{ matrix.python }} |
| 47 | + |
| 48 | + - name: Install dependencies ansible |
| 49 | + run: | |
| 50 | + python3 -m pip install --upgrade pip |
| 51 | + python3 -m pip install -r requirements-test-${{ matrix.ansible }}.txt |
| 52 | +
|
| 53 | + - name: Install collection |
| 54 | + run: | |
| 55 | + mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE |
| 56 | + cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME |
| 57 | +
|
| 58 | + - name: Test with molecule |
| 59 | + run: | |
| 60 | + ansible --version |
| 61 | + molecule --version |
| 62 | + molecule test -s ${{ matrix.scenario }} |
| 63 | + env: |
| 64 | + MOLECULE_DISTRO: ${{ matrix.distro }} |
| 65 | + |
| 66 | + test_ini_template_2_16: |
| 67 | + runs-on: ubuntu-latest |
| 68 | + |
| 69 | + env: |
| 70 | + COLLECTION_NAMESPACE: icinga |
| 71 | + COLLECTION_NAME: icinga |
| 72 | + |
| 73 | + strategy: |
| 74 | + fail-fast: false |
| 75 | + max-parallel: 1 |
| 76 | + matrix: |
| 77 | + distro: [ubuntu2204] |
| 78 | + python: ['3.10','3.11','3.12'] |
| 79 | + ansible: ['2.16'] |
| 80 | + scenario: [ini-configuration-tests] |
| 81 | + |
| 82 | + steps: |
| 83 | + - name: Check out code |
| 84 | + uses: actions/checkout@v4 |
| 85 | + |
| 86 | + - name: Set up Python |
| 87 | + uses: actions/setup-python@v5 |
| 88 | + with: |
| 89 | + python-version: ${{ matrix.python }} |
| 90 | + |
| 91 | + - name: Install dependencies ansible |
| 92 | + run: | |
| 93 | + python3 -m pip install --upgrade pip |
| 94 | + python3 -m pip install -r requirements-test-${{ matrix.ansible }}.txt |
| 95 | +
|
| 96 | + - name: Install collection |
| 97 | + run: | |
| 98 | + mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE |
| 99 | + cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME |
| 100 | +
|
| 101 | + - name: Test with molecule |
| 102 | + run: | |
| 103 | + ansible --version |
| 104 | + molecule --version |
| 105 | + molecule test -s ${{ matrix.scenario }} |
| 106 | + env: |
| 107 | + MOLECULE_DISTRO: ${{ matrix.distro }} |
| 108 | + |
| 109 | + test_ini_template_2_17: |
| 110 | + runs-on: ubuntu-latest |
| 111 | + |
| 112 | + env: |
| 113 | + COLLECTION_NAMESPACE: icinga |
| 114 | + COLLECTION_NAME: icinga |
| 115 | + |
| 116 | + strategy: |
| 117 | + fail-fast: false |
| 118 | + max-parallel: 1 |
| 119 | + matrix: |
| 120 | + distro: [ubuntu2204] |
| 121 | + python: ['3.10','3.11','3.12'] |
| 122 | + ansible: ['2.17'] |
35 | 123 | scenario: [ini-configuration-tests] |
36 | 124 |
|
37 | 125 | steps: |
|
0 commit comments