Add check console (#319)

This commit is contained in:
DecafDev 2024-09-09 14:57:32 -06:00 committed by GitHub
parent 27c94e3c47
commit 758524f858
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
.github/workflows/check-console-log.yml vendored Normal file
View 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!"