Skip to content

Commit 649fb29

Browse files
committed
test multiple line approach
1 parent 4970ad2 commit 649fb29

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/validate.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ jobs:
2121
node-version: 18
2222

2323
- name: 🧹 Check code formatting with Prettier
24-
run: find . -name package.json -maxdepth 2 -type f -execdir npm run format:check ';+'
24+
run: >
25+
find . -name package.json -maxdepth 2 -type f | while read -r file; do
26+
directory=$(dirname "$file")
27+
cd "$directory" && npm run format:check && cd -
28+
done
2529
2630
- name: 👕 Lint Node.js code with ESLint
27-
run: find . -name package.json -maxdepth 2 -type f -execdir npm run lint ';+'
31+
run: >
32+
find . -name package.json -maxdepth 2 -type f | while read -r file; do
33+
directory=$(dirname "$file")
34+
cd "$directory" && npm run lint && cd -
35+
done

0 commit comments

Comments
 (0)