1
1
name : CI
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches : [main]
6
7
pull_request :
@@ -19,10 +20,10 @@ jobs:
19
20
- name : Check out code
20
21
uses : actions/checkout@v3
21
22
22
- - name : Set up Python 3.11
23
+ - name : Set up Python
23
24
uses : actions/setup-python@v4
24
25
with :
25
- python-version : 3.11
26
+ python-version : 3.12
26
27
27
28
- name : Install ansible (${{ matrix.ansible-version }})
28
29
run : pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
31
32
run : ansible-galaxy collection build --output-path "${GITHUB_WORKSPACE}/.cache/collection-tarballs"
32
33
33
34
- name : Store migrated collection artifacts
34
- uses : actions/upload-artifact@v4.4.0
35
+ uses : actions/upload-artifact@v4
35
36
with :
36
37
name : collection
37
38
path : .cache/collection-tarballs
@@ -106,48 +107,6 @@ jobs:
106
107
pull-request-change-detection : true
107
108
coverage : never
108
109
109
- lint :
110
- name : Ansible lint
111
- runs-on : ubuntu-latest
110
+ ansible-lint :
112
111
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