63
63
type : boolean
64
64
description : " Boolean to enable the Python lint check job. Defaults to true."
65
65
default : true
66
- linux_pre_run_command :
66
+ linux_pre_build_command :
67
67
type : string
68
68
description : " Linux command to execute before building the Swift package"
69
69
default : " "
90
90
- name : Mark the workspace as safe
91
91
# https://github.com/actions/checkout/issues/766
92
92
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
93
- - name : Pre-run setup
94
- if : ${{ inputs.linux_pre_run_command }}
95
- run : ${{ inputs.linux_pre_run_command }}
93
+ - name : Pre-build
94
+ if : ${{ inputs.linux_pre_build_command }}
95
+ run : ${{ inputs.linux_pre_build_command }}
96
96
- name : Run API breakage check
97
97
run : |
98
98
git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref
@@ -111,9 +111,9 @@ jobs:
111
111
with :
112
112
persist-credentials : false
113
113
submodules : true
114
- - name : Pre-run setup
115
- if : ${{ inputs.linux_pre_run_command }}
116
- run : ${{ inputs.linux_pre_run_command }}
114
+ - name : Pre-build
115
+ if : ${{ inputs.linux_pre_build_command }}
116
+ run : ${{ inputs.linux_pre_build_command }}
117
117
- name : Run documentation check
118
118
run : |
119
119
apt-get -qq update && apt-get -qq -y install curl yq
@@ -130,9 +130,6 @@ jobs:
130
130
with :
131
131
persist-credentials : false
132
132
submodules : true
133
- - name : Pre-run setup
134
- if : ${{ inputs.linux_pre_run_command }}
135
- run : ${{ inputs.linux_pre_run_command }}
136
133
- name : Run unacceptable language check
137
134
env :
138
135
UNACCEPTABLE_WORD_LIST : ${{ inputs.unacceptable_language_check_word_list}}
@@ -149,9 +146,6 @@ jobs:
149
146
with :
150
147
persist-credentials : false
151
148
submodules : true
152
- - name : Pre-run setup
153
- if : ${{ inputs.linux_pre_run_command }}
154
- run : ${{ inputs.linux_pre_run_command }}
155
149
- name : Run license header check
156
150
env :
157
151
PROJECT_NAME : ${{ inputs.license_header_check_project_name }}
@@ -168,9 +162,6 @@ jobs:
168
162
with :
169
163
persist-credentials : false
170
164
submodules : true
171
- - name : Pre-run setup
172
- if : ${{ inputs.linux_pre_run_command }}
173
- run : ${{ inputs.linux_pre_run_command }}
174
165
- name : Run broken symlinks check
175
166
run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-broken-symlinks.sh | bash
176
167
@@ -190,9 +181,6 @@ jobs:
190
181
- name : Mark the workspace as safe
191
182
# https://github.com/actions/checkout/issues/766
192
183
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
193
- - name : Pre-run setup
194
- if : ${{ inputs.linux_pre_run_command }}
195
- run : ${{ inputs.linux_pre_run_command }}
196
184
- name : Run format check
197
185
run : |
198
186
apt-get -qq update && apt-get -qq -y install curl
@@ -214,9 +202,6 @@ jobs:
214
202
- name : Mark the workspace as safe
215
203
# https://github.com/actions/checkout/issues/766
216
204
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
217
- - name : Pre-run setup
218
- if : ${{ inputs.linux_pre_run_command }}
219
- run : ${{ inputs.linux_pre_run_command }}
220
205
- name : Run shellcheck
221
206
run : |
222
207
apt-get -qq update && apt-get -qq -y install shellcheck
@@ -233,9 +218,6 @@ jobs:
233
218
with :
234
219
persist-credentials : false
235
220
submodules : true
236
- - name : Pre-run setup
237
- if : ${{ inputs.linux_pre_run_command }}
238
- run : ${{ inputs.linux_pre_run_command }}
239
221
- name : Run yamllint
240
222
run : |
241
223
which yamllint >/dev/null || ( apt-get update && apt-get install -y yamllint )
@@ -257,9 +239,6 @@ jobs:
257
239
with :
258
240
persist-credentials : false
259
241
submodules : true
260
- - name : Pre-run setup
261
- if : ${{ inputs.linux_pre_run_command }}
262
- run : ${{ inputs.linux_pre_run_command }}
263
242
- name : Run flake8
264
243
run : |
265
244
pip3 install flake8 flake8-import-order
0 commit comments