1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-26 04:46:08 +00:00

CI: Use partial runs for prettier (#69546)

This commit is contained in:
epenet
2022-04-07 11:48:43 +02:00
committed by GitHub
parent 4fe6b0c140
commit 6773c252d2

View File

@@ -435,11 +435,19 @@ jobs:
. venv/bin/activate
pre-commit run --hook-stage manual check-json --all-files
- name: Run prettier
- name: Run prettier (fully)
if: needs.changes.outputs.test_full_suite == 'true'
run: |
. venv/bin/activate
pre-commit run --hook-stage manual prettier --all-files
- name: Run prettier (partially)
if: needs.changes.outputs.test_full_suite == 'false'
shell: bash
run: |
. venv/bin/activate
pre-commit run --hook-stage manual prettier --files {homeassistant,tests}/components/${{ needs.changes.outputs.integrations_glob }}/**/*
- name: Register check executables problem matcher
run: |
echo "::add-matcher::.github/workflows/matchers/check-executables-have-shebangs.json"