turning back on

This commit is contained in:
Copple committed 2022-04-26 11:06:43 +02:00
1 parent d0434f490f
commit 001336b8a3
1 file changed
+14 -12
+14 -12
View File
@@ -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: