|
15 | 15 | strategy:
|
16 | 16 | fail-fast: false
|
17 | 17 | matrix:
|
18 |
| - ansible-version: [stable-2.12] |
| 18 | + ansible-version: [stable-2.13] |
19 | 19 | steps:
|
20 | 20 | - name: Check out code
|
21 | 21 | uses: actions/checkout@v2
|
|
50 | 50 | fail-fast: false
|
51 | 51 | matrix:
|
52 | 52 | python-version: ["3.9", "3.10", "3.11"]
|
53 |
| - ansible-version: [stable-2.12, stable-2.13, stable-2.14] |
| 53 | + ansible-version: [stable-2.13, stable-2.14, stable-2.15] |
54 | 54 | exclude:
|
55 | 55 | # Python 3.11 is supported only from ansible-core 2.14 onwards
|
56 |
| - - python-version: "3.11" |
57 |
| - ansible-version: stable-2.12 |
58 | 56 | - python-version: "3.11"
|
59 | 57 | ansible-version: stable-2.13
|
60 | 58 |
|
|
93 | 91 | strategy:
|
94 | 92 | fail-fast: false
|
95 | 93 | matrix:
|
96 |
| - ansible-version: [stable-2.12, stable-2.13, stable-2.14] |
| 94 | + ansible-version: [stable-2.13, stable-2.14, stable-2.15] |
97 | 95 |
|
98 | 96 | steps:
|
99 | 97 | - name: Set up Python 3.9
|
@@ -121,3 +119,44 @@ jobs:
|
121 | 119 | - name: Run sanity tests
|
122 | 120 | run: ansible-test sanity --docker -v --color
|
123 | 121 | working-directory: /home/runner/.ansible/collections/ansible_collections/dellemc/unity
|
| 122 | + |
| 123 | + lint: |
| 124 | + name: Ansible lint |
| 125 | + runs-on: ubuntu-latest |
| 126 | + needs: [build] |
| 127 | + strategy: |
| 128 | + fail-fast: false |
| 129 | + matrix: |
| 130 | + python-version: ["3.9", "3.10", "3.11"] |
| 131 | + ansible-version: [stable-2.13, stable-2.14, stable-2.15] |
| 132 | + |
| 133 | + steps: |
| 134 | + # Important: This sets up your GITHUB_WORKSPACE environment variable |
| 135 | + - name: Checkout the source code |
| 136 | + uses: actions/checkout@v3 |
| 137 | + with: |
| 138 | + fetch-depth: 0 # needed for progressive mode to work |
| 139 | + |
| 140 | + - name: Set up Python ${{ matrix.python-version }} |
| 141 | + uses: actions/setup-python@v1 |
| 142 | + with: |
| 143 | + python-version: ${{ matrix.python-version }} |
| 144 | + |
| 145 | + - name: Install ansible (${{ matrix.ansible-version }}) version |
| 146 | + run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check |
| 147 | + |
| 148 | + - name: Install ansible lint |
| 149 | + run: pip install ansible-lint --disable-pip-version-check |
| 150 | + |
| 151 | + - name: Download migrated collection artifacts |
| 152 | + uses: actions/download-artifact@v1 |
| 153 | + with: |
| 154 | + name: collection |
| 155 | + path: .cache/collection-tarballs |
| 156 | + |
| 157 | + - name: Install collection build |
| 158 | + run: ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz |
| 159 | + |
| 160 | + - name: Run Ansible lint |
| 161 | + run: ansible-lint --show-relpath |
| 162 | + working-directory: /home/runner/work/ansible-unity/ansible-unity |
0 commit comments