@@ -165,8 +165,7 @@ jobs:
165
165
runs-on : ubuntu-20.04
166
166
timeout-minutes : 15
167
167
if : |
168
- (needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false') &&
169
- (needs.job_get_metadata.outputs.changed_any_code == 'true' || github.event_name != 'pull_request')
168
+ (needs.job_get_metadata.outputs.is_gitflow_sync == 'false' && needs.job_get_metadata.outputs.has_gitflow_label == 'false')
170
169
steps :
171
170
- name : ' Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})'
172
171
uses : actions/checkout@v4
@@ -215,6 +214,8 @@ jobs:
215
214
needs : [job_get_metadata, job_install_deps]
216
215
runs-on : ubuntu-20.04
217
216
timeout-minutes : 30
217
+ if : |
218
+ (needs.job_get_metadata.outputs.changed_any_code == 'true' || github.event_name != 'pull_request')
218
219
steps :
219
220
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
220
221
uses : actions/checkout@v4
@@ -323,6 +324,28 @@ jobs:
323
324
- name : Validate ES5 builds
324
325
run : yarn validate:es5
325
326
327
+ job_lint_md :
328
+ name : Lint Markdown
329
+ needs : [job_get_metadata, job_install_deps]
330
+ timeout-minutes : 10
331
+ runs-on : ubuntu-20.04
332
+ if : needs.job_get_metadata.outputs.changed_any_code != 'true' && github.event_name == 'pull_request'
333
+ steps :
334
+ - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
335
+ uses : actions/checkout@v4
336
+ with :
337
+ ref : ${{ env.HEAD_COMMIT }}
338
+ - name : Set up Node
339
+ uses : actions/setup-node@v4
340
+ with :
341
+ node-version-file : ' package.json'
342
+ - name : Restore caches
343
+ uses : ./.github/actions/restore-cache
344
+ env :
345
+ DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
346
+ - name : Lint .md files
347
+ run : yarn lint:prettier
348
+
326
349
job_circular_dep_check :
327
350
name : Circular Dependency Check
328
351
needs : [job_get_metadata, job_build]
@@ -1015,6 +1038,7 @@ jobs:
1015
1038
job_e2e_tests,
1016
1039
job_artifacts,
1017
1040
job_lint,
1041
+ job_lint_md,
1018
1042
job_circular_dep_check,
1019
1043
]
1020
1044
# Always run this, even if a dependent job failed
0 commit comments