@@ -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
@@ -319,10 +320,33 @@ jobs:
319
320
env :
320
321
DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
321
322
- name : Lint source files
322
- run : yarn lint
323
+ run : yarn lint:lerna
323
324
- name : Validate ES5 builds
324
325
run : yarn validate:es5
325
326
327
+ job_check_format :
328
+ name : Check file formatting
329
+ needs : [job_get_metadata, job_install_deps]
330
+ timeout-minutes : 10
331
+ runs-on : ubuntu-20.04
332
+ steps :
333
+ - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
334
+ uses : actions/checkout@v4
335
+ with :
336
+ ref : ${{ env.HEAD_COMMIT }}
337
+ - name : Set up Node
338
+ uses : actions/setup-node@v4
339
+ with :
340
+ node-version-file : ' package.json'
341
+ - name : Check dependency cache
342
+ uses : actions/cache/restore@v3
343
+ with :
344
+ path : ${{ env.CACHED_DEPENDENCY_PATHS }}
345
+ key : ${{ needs.job_install_deps.outputs.dependency_cache_key }}
346
+ fail-on-cache-miss : true
347
+ - name : Check file formatting
348
+ run : yarn lint:prettier && yarn lint:biome
349
+
326
350
job_circular_dep_check :
327
351
name : Circular Dependency Check
328
352
needs : [job_get_metadata, job_build]
@@ -1015,6 +1039,7 @@ jobs:
1015
1039
job_e2e_tests,
1016
1040
job_artifacts,
1017
1041
job_lint,
1042
+ job_check_format,
1018
1043
job_circular_dep_check,
1019
1044
]
1020
1045
# Always run this, even if a dependent job failed
0 commit comments