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

chore: automate DS root crt generation #188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
13 changes: 13 additions & 0 deletions .github/workflows/android-detox-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ jobs:
run: |
cd android && git branch && cd ..

- name: Generate DS Root Certificate for Netcetera SDK
run: |
CERTIFICATE_STRING=${{ secrets.NETCETERA_DS_ROOT_CRT }}
OUTPUT_FILE="nca_demo_root.crt"
mkdir -p android/demo-app/src/main/assets
OUTPUT_PATH="android/demo-app/src/main/assets/$OUTPUT_FILE"
{
echo "-----BEGIN CERTIFICATE-----"
echo "$CERTIFICATE_STRING"
echo "-----END CERTIFICATE-----"
} > "$OUTPUT_PATH"
echo "Content has been successfully transferred to $OUTPUT_FILE."

- name: Generate & Supply JS Bundle to Test APK
run: |
npm run re:start && npm run bundle:android
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/iOS-detox-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ jobs:
echo HYPERSWITCH_SECRET_KEY = ${{ secrets.HYPERSWITCH_SECRET_KEY }}>> .env
echo PROFILE_ID = ${{ secrets.PROFILE_ID }}>> .env

- name: Generate DS Root Certificate for Netcetera SDK
run: |
CERTIFICATE_STRING=${{ secrets.NETCETERA_DS_ROOT_CRT }}
OUTPUT_FILE="nca_demo_root.crt"
OUTPUT_PATH="ios/hyperswitch"
{
echo "-----BEGIN CERTIFICATE-----"
echo "$CERTIFICATE_STRING"
echo "-----END CERTIFICATE-----"
} > "$OUTPUT_PATH"
echo "Content has been successfully transferred to $OUTPUT_FILE."

- name: Start server
run: |
nohup node server.js &
Expand Down
Loading