-
-
Notifications
You must be signed in to change notification settings - Fork 887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added server health check to github workflow #1717
Merged
palisadoes
merged 12 commits into
PalisadoesFoundation:develop
from
shankeleven:develop
Feb 18, 2024
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
61d4122
Replace package vm2 with isolated-vm (#1532)
Community-Programmer 46771db
chore(deps): bump follow-redirects from 1.15.3 to 1.15.4 (#1668)
dependabot[bot] ce08301
added a check for server health
980d320
server health check incorporated after test
6257c5c
removed old environment variables
a757f66
Merge branch 'develop' of https://github.com/PalisadoesFoundation/tal…
4c823fe
conflicts resolved
8684626
conflicts resolved
75823cc
conflicts resolved
f340592
added usable env values instead of placeholders
be4c6b5
small yaml correction
cf2698f
Merge branch 'develop' into develop
SiddheshKukade File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,19 @@ jobs: | |
MONGO_DB_URL: mongodb://localhost:27017/talawa-test-db | ||
REDIS_HOST: localhost | ||
REDIS_PORT: 6379 | ||
RECAPTCHA_SITE_KEY: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
RECAPTCHA_SECRET_KEY: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
MAIL_USERNAME: "abc@gmail.com" | ||
MAIL_PASSWORD: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the app start when using this "XXXXXXXXXXXXXXXXXXXXXXXXXX" value? |
||
IS_SMTP: "" | ||
SMTP_HOST: "" | ||
SMTP_PASSWORD: "" | ||
SMTP_USERNAME: "" | ||
LAST_RESORT_SUPERADMIN_EMAIL: "abc@gmail.com" | ||
COLORIZE_LOGS: "true" | ||
LOG_LEVEL: "info" | ||
# ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }} | ||
# REFRESH_TOKEN_SECRET: ${{ secrets.REFRESH_TOKEN_SECRET }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -138,6 +151,29 @@ jobs: | |
|
||
- name: Run the tests | ||
run: npm run test | ||
|
||
- name: Start the development server | ||
run: | | ||
npm run dev & | ||
echo "Development server started..." | ||
|
||
- name: Check server status | ||
shankeleven marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: | | ||
if curl -f 'http://localhost:4000' | jq -e '. == {"talawa-version":"v1","status":"healthy"}' > /dev/null; then | ||
echo "Server is up and healthy" | ||
else | ||
echo "Server is down" | ||
exit 1 | ||
fi | ||
- name: Check Apollo Server status | ||
run: | | ||
if curl -f 'http://localhost:4000/graphql?query=%7B__typename%7D' \ | ||
SiddheshKukade marked this conversation as resolved.
Show resolved
Hide resolved
|
||
-H 'Apollo-Require-Preflight: true' | jq -e '. == {"data":{"__typename":"Query"}}' > /dev/null; then | ||
echo "Apollo Server is up" | ||
else | ||
echo "Server is down" | ||
exit 1 | ||
fi | ||
|
||
- name: Import Sample Data | ||
run: npm run import:sample-data | ||
|
@@ -155,7 +191,6 @@ jobs: | |
with: | ||
path: './coverage/lcov.info' | ||
min_coverage: 95.0 | ||
|
||
JSDocs: | ||
name: 'JSDocs comments and pipeline' | ||
runs-on: ubuntu-latest | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the app start when using these "XXXXXXXXXXXXXXXXXXXXXXXXXX" RECAPTCHA values?