Skip to content

Commit ca6b756

Browse files
committed
Updating git workflow to include ansible 2.15
1 parent b37e4eb commit ca6b756

File tree

2 files changed

+48
-5
lines changed

2 files changed

+48
-5
lines changed

.ansible-lint

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exclude_paths:
2+
- changelogs/
3+
- .github/
4+
- meta/

.github/workflows/ansible-test.yml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
ansible-version: [stable-2.12]
18+
ansible-version: [stable-2.13]
1919
steps:
2020
- name: Check out code
2121
uses: actions/checkout@v2
@@ -50,11 +50,9 @@ jobs:
5050
fail-fast: false
5151
matrix:
5252
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]
5454
exclude:
5555
# Python 3.11 is supported only from ansible-core 2.14 onwards
56-
- python-version: "3.11"
57-
ansible-version: stable-2.12
5856
- python-version: "3.11"
5957
ansible-version: stable-2.13
6058

@@ -93,7 +91,7 @@ jobs:
9391
strategy:
9492
fail-fast: false
9593
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]
9795

9896
steps:
9997
- name: Set up Python 3.9
@@ -121,3 +119,44 @@ jobs:
121119
- name: Run sanity tests
122120
run: ansible-test sanity --docker -v --color
123121
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

Comments
 (0)