Skip to content

Commit ece4484

Browse files
committed
always check formatting
1 parent 3a91e99 commit ece4484

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,16 +320,15 @@ jobs:
320320
env:
321321
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
322322
- name: Lint source files
323-
run: yarn lint
323+
run: lint:lerna
324324
- name: Validate ES5 builds
325325
run: yarn validate:es5
326326

327-
job_lint_md:
328-
name: Lint Markdown
327+
job_check_format:
328+
name: Check file formatting
329329
needs: [job_get_metadata, job_install_deps]
330330
timeout-minutes: 10
331331
runs-on: ubuntu-20.04
332-
if: needs.job_get_metadata.outputs.changed_any_code != 'true' && github.event_name == 'pull_request'
333332
steps:
334333
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
335334
uses: actions/checkout@v4
@@ -339,8 +338,14 @@ jobs:
339338
uses: actions/setup-node@v4
340339
with:
341340
node-version-file: 'package.json'
342-
- name: Lint .md files
343-
run: yarn lint:prettier
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
344349

345350
job_circular_dep_check:
346351
name: Circular Dependency Check
@@ -1034,7 +1039,7 @@ jobs:
10341039
job_e2e_tests,
10351040
job_artifacts,
10361041
job_lint,
1037-
job_lint_md,
1042+
job_check_format,
10381043
job_circular_dep_check,
10391044
]
10401045
# Always run this, even if a dependent job failed

0 commit comments

Comments
 (0)