From 001336b8a37b3dd645701eebab16bc1099d3cbc3 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 26 Apr 2022 11:06:43 +0200 Subject: [PATCH] turning back on --- .github/workflows/prettier.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index b01dba8dc82..40c20394ba6 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -3,7 +3,7 @@ name: Check Code with Prettier on: pull_request: branches: - - 'disabled-for-now' + - 'master' jobs: format: @@ -13,17 +13,19 @@ jobs: uses: actions/checkout@v2 - name: Run prettier run: |- - function run_check() { - if $(grep -q '"prettier"' "$1") ; then - pushd "$(dirname $1)" - echo "Running prettier on $(pwd)" - npx prettier -c '**/*.{js,jsx,ts,tsx,css,md,json}' - popd - fi - } - find . -type f -name 'package.json' ! -path '*node_modules*' -print0 | while IFS= read -r -d '' file; do - run_check "$file" - done + npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,json}' + # run: |- + # function run_check() { + # if $(grep -q '"prettier"' "$1") ; then + # pushd "$(dirname $1)" + # echo "Running prettier on $(pwd)" + # npx prettier -c '**/*.{js,jsx,ts,tsx,css,md,json}' + # popd + # fi + # } + # find . -type f -name 'package.json' ! -path '*node_modules*' -print0 | while IFS= read -r -d '' file; do + # run_check "$file" + # done # i18n is not a node package, so we handle that one separately format-i18n: