11name : CI
22
33on :
4+ workflow_dispatch :
45 push :
56 branches : [main]
67 pull_request :
@@ -19,10 +20,10 @@ jobs:
1920 - name : Check out code
2021 uses : actions/checkout@v3
2122
22- - name : Set up Python 3.11
23+ - name : Set up Python
2324 uses : actions/setup-python@v4
2425 with :
25- python-version : 3.11
26+ python-version : 3.12
2627
2728 - name : Install ansible (${{ matrix.ansible-version }})
2829 run : pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
3132 run : ansible-galaxy collection build --output-path "${GITHUB_WORKSPACE}/.cache/collection-tarballs"
3233
3334 - name : Store migrated collection artifacts
34- uses : actions/upload-artifact@v4.4.0
35+ uses : actions/upload-artifact@v4
3536 with :
3637 name : collection
3738 path : .cache/collection-tarballs
@@ -106,48 +107,6 @@ jobs:
106107 pull-request-change-detection : true
107108 coverage : never
108109
109- lint :
110- name : Ansible lint
111- runs-on : ubuntu-latest
110+ ansible-lint :
112111 needs : [build]
113- strategy :
114- fail-fast : false
115- matrix :
116- python-version : ["3.10", "3.11", "3.12"]
117- ansible-version : [stable-2.17, stable-2.16, stable-2.18, devel]
118- exclude :
119- - ansible-version : stable-2.18
120- python-version : " 3.10"
121- - ansible-version : devel
122- python-version : " 3.10"
123-
124- steps :
125- # Important: This sets up your GITHUB_WORKSPACE environment variable
126- - name : Checkout the source code
127- uses : actions/checkout@v3
128- with :
129- fetch-depth : 0 # needed for progressive mode to work
130-
131- - name : Set up Python ${{ matrix.python-version }}
132- uses : actions/setup-python@v1
133- with :
134- python-version : ${{ matrix.python-version }}
135-
136- - name : Install ansible (${{ matrix.ansible-version }}) version
137- run : pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
138-
139- - name : Install ansible lint
140- run : pip install ansible-lint --disable-pip-version-check
141-
142- - name : Download migrated collection artifacts
143- 144- with :
145- name : collection
146- path : .cache/collection-tarballs
147-
148- - name : Install collection build
149- run : ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz
150-
151- - name : Run Ansible lint
152- run : ansible-lint --show-relpath
153- working-directory : /home/runner/work/ansible-powerscale/ansible-powerscale
112+ uses : ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
0 commit comments