-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5041f74
commit 7aff6ec
Showing
173 changed files
with
120 additions
and
11 deletions.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ if [ -f ".env.local" ]; then | |
dotenv .env.local | ||
fi | ||
|
||
use flake . | ||
use flake ./dev |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: tilt-ci | ||
|
||
on: [push] | ||
|
||
jobs: | ||
tilt-ci-android: | ||
name: Tilt CI Android | ||
runs-on: ["self-hosted", "Linux", "X64"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- name: Tilt CI | ||
run: | | ||
pushd dev | ||
for i in {1..5}; do | ||
echo "Tilt CI attempt $i" | ||
nix develop -c tilt ci && exit 0 || sleep 60 | ||
done | ||
exit 1 | ||
- name: Tilt Down | ||
if: always() | ||
continue-on-error: true | ||
run: pushd dev && nix develop -c tilt down | ||
|
||
# tilt-ci-ios: | ||
# name: Tilt CI MacOS | ||
# runs-on: ["self-hosted", "MacOS", "ARM64"] | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
# - name: Tilt CI | ||
# run: | | ||
# pushd dev | ||
# for i in {1..5}; do | ||
# echo "Tilt CI attempt $i" | ||
# nix develop -c tilt ci && exit 0 || sleep 60 | ||
# done | ||
# exit 1 | ||
# - name: Tilt Down | ||
# if: always() | ||
# continue-on-error: true | ||
# run: pushd dev && nix develop -c tilt down |
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 |
---|---|---|
|
@@ -75,7 +75,6 @@ yalc.lock | |
|
||
*.log | ||
|
||
.env | ||
.dependencies | ||
ios/assets | ||
ios/GaloyApp/assets | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALICE_PHONE="+919876540001" | ||
BOB_PHONE="+919876540002" |
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Enable strict error handling | ||
set -e | ||
|
||
# Function to handle termination gracefully | ||
cleanup() { | ||
echo "Stopping block generation..." | ||
kill $BITCOIN_GEN_PID | ||
exit 0 | ||
} | ||
|
||
# Trap SIGTERM and SIGINT to cleanup function | ||
trap cleanup SIGTERM SIGINT | ||
|
||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
source "${REPO_ROOT}/dev/vendor/galoy-quickstart/bin/helpers.sh" | ||
|
||
# Start block generation in the background | ||
while true; do | ||
bitcoin_cli -generate 1 | ||
sleep 2 | ||
done & | ||
|
||
BITCOIN_GEN_PID=$! | ||
wait $BITCOIN_GEN_PID |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
|
||
source ${REPO_ROOT}/dev/vendor/galoy-quickstart/bin/helpers.sh | ||
source ${REPO_ROOT}/dev/.env | ||
|
||
login_user "alice" "$ALICE_PHONE" "000000" | ||
echo "alice logged in" | ||
ALICE_TOKEN=$(read_value "alice") | ||
receive_onchain | ||
echo "alice funded" | ||
|
||
login_user "alice" "$BOB_PHONE" "000000" | ||
echo "bob logged in" | ||
BOB_TOKEN=$(read_value "alice") | ||
receive_onchain | ||
echo "bob funded" | ||
|
||
cat <<EOF > .env.tmp.ci | ||
ALICE_TOKEN="$ALICE_TOKEN" | ||
BOB_TOKEN="$BOB_TOKEN" | ||
EOF |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.