Skip to content

Commit 6046d74

Browse files
authored
Add this to workflows to test new pull request (#198)
1 parent a15bd2c commit 6046d74

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

+16
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,19 @@ jobs:
5151
- name: Run tests
5252
run: npm test
5353
working-directory: server/
54+
55+
file_existence:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Checkout code
59+
uses: actions/checkout@v2
60+
61+
- name: Check for private.json and .env files
62+
run: |
63+
if [ -e ".env" ] || [ -e "firebase-secret.json" ]; then
64+
echo "Error: Found .env or firebase-secret.json in the pull request. Please remove them before merging.";
65+
exit 1;
66+
fi
67+
68+
69+

0 commit comments

Comments
 (0)