From f016d2a6009500b9b6042d64f58bdfa8e64baa7b Mon Sep 17 00:00:00 2001 From: gilgardosh Date: Thu, 5 Jan 2023 17:46:37 +0200 Subject: [PATCH] prettier on pre-commit and CI --- .github/workflows/tests.yml | 7 +++++++ .husky/pre-commit | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b288c4672cc8..4a4a341456a81 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,13 @@ jobs: secrets: githubToken: ${{ secrets.GITHUB_TOKEN }} + prettier: + uses: the-guild-org/shared-config/.github/workflows/prettier.yml@main + with: + script: yarn ci:prettier + secrets: + githubToken: ${{ secrets.GITHUB_TOKEN }} + test: name: ${{matrix.os}} / node ${{matrix.node-version}} timeout-minutes: 60 diff --git a/.husky/pre-commit b/.husky/pre-commit index d2ae35e84b09c..de42e52255b6f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +yarn prettier yarn lint-staged