Skip to content
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

Test! Do not merge #57

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
run: npx prettier --check .
- name: Lint
run: npm run lint
- name: Extend Netlify Timeout
run: chmod +x ./update_netlify_timeout.sh && ./update_netlify_timeout.sh
- name: Integration test
run: npm run test:ci
env:
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@govtechsg/oa-encryption": "^1.3.5",
"@netlify/functions": "^2.0.2",
"@tradetrust-tt/tradetrust-utils": "^1.13.4",
"@tradetrust-tt/tradetrust-utils": "^1.13.5",
"@tradetrust-tt/tt-verify": "^8.9.2",
"aws-sdk": "^2.1463.0",
"body-parser": "^1.20.1",
Expand Down
23 changes: 23 additions & 0 deletions update_netlify_timeout.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# Path to the file
FILE="./node_modules/netlify-cli/src/utils/dev.mjs"

# Old and new values
OLD_VALUE="const SYNCHRONOUS_FUNCTION_TIMEOUT = 10"
NEW_VALUE="const SYNCHRONOUS_FUNCTION_TIMEOUT = 26"

# Check if the file exists
if [ ! -f "$FILE" ]; then
echo "File not found: $FILE"
exit 1
fi

# Check if the old value exists in the file
if grep -q "$OLD_VALUE" "$FILE"; then
# Replace the old value with the new value
sed -i.bak "s/$OLD_VALUE/$NEW_VALUE/" "$FILE"
echo "SYNCHRONOUS_FUNCTION_TIMEOUT value updated successfully!"
else
echo "Old value not found in file. No changes made."
fi
Loading