mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
Add check console (#319)
This commit is contained in:
parent
27c94e3c47
commit
758524f858
1 changed files with 20 additions and 0 deletions
20
.github/workflows/check-console-log.yml
vendored
Normal file
20
.github/workflows/check-console-log.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Check Console Log
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
check_src_folder:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run console.log check
|
||||
run: |
|
||||
found=$(find src/ -type f ! -name "main.ts" ! -path "*/migrations/index.ts" | xargs grep "console.log" || true)
|
||||
if [ -n "$found" ]; then
|
||||
echo "console.log found in the following files:"
|
||||
echo "$found"
|
||||
exit 1
|
||||
fi
|
||||
echo "No console.log statements found!"
|
||||
Loading…
Reference in a new issue