@@ -190,66 +190,66 @@ jobs:
190190 docker info
191191 docker ps
192192
193- # - name: Run regtest setup
194- # working-directory: bitkit-e2e-tests
195- # run: |
196- # cd docker
197- # mkdir lnd && chmod 777 lnd
198- # docker compose pull --quiet
199- # docker compose up -d
200-
201- # - name: Wait for electrum server and LND
202- # working-directory: bitkit-e2e-tests
203- # timeout-minutes: 10
204- # run: |
205- # while ! nc -z '127.0.0.1' 60001; do sleep 1; done
206- # sudo bash -c "while [ ! -f docker/lnd/data/chain/bitcoin/regtest/admin.macaroon ]; do sleep 1; done"
207- # sudo chmod -R 777 docker/lnd
193+ - name : Run regtest setup
194+ working-directory : bitkit-e2e-tests
195+ run : |
196+ cd docker
197+ mkdir lnd && chmod 777 lnd
198+ docker compose pull --quiet
199+ docker compose up -d
208200
209- # - name: Setup iOS Simulator
210- # run: |
211- # # Boot iOS Simulator
212- # xcrun simctl boot "iPhone 17" || true
213- # xcrun simctl bootstatus "iPhone 17" -b
201+ - name : Wait for electrum server and LND
202+ working-directory : bitkit-e2e-tests
203+ timeout-minutes : 10
204+ run : |
205+ while ! nc -z '127.0.0.1' 60001; do sleep 1; done
206+ sudo bash -c "while [ ! -f docker/lnd/data/chain/bitcoin/regtest/admin.macaroon ]; do sleep 1; done"
207+ sudo chmod -R 777 docker/lnd
208+
209+ - name : Setup iOS Simulator
210+ run : |
211+ # Boot iOS Simulator
212+ xcrun simctl boot "iPhone 17" || true
213+ xcrun simctl bootstatus "iPhone 17" -b
214214
215- # # Install the app
216- # xcrun simctl install "iPhone 17" bitkit-e2e-tests/aut/bitkit.app
215+ # Install the app
216+ xcrun simctl install "iPhone 17" bitkit-e2e-tests/aut/bitkit.app
217217
218- # - name: Run E2E Tests (${{ matrix.shard.name }})
219- # run: |
220- # cd bitkit-e2e-tests
218+ - name : Run E2E Tests (${{ matrix.shard.name }})
219+ run : |
220+ cd bitkit-e2e-tests
221221
222- # # Setup logging
223- # LOGDIR="./artifacts"
224- # mkdir -p "$LOGDIR"
225- # LOGFILE="$LOGDIR/simulator.log"
222+ # Setup logging
223+ LOGDIR="./artifacts"
224+ mkdir -p "$LOGDIR"
225+ LOGFILE="$LOGDIR/simulator.log"
226226
227- # # Start simulator logging
228- # xcrun simctl spawn "iPhone 17" log stream --predicate 'process == "Bitkit"' --style compact > "$LOGFILE" &
229- # LOG_PID=$!
227+ # Start simulator logging
228+ xcrun simctl spawn "iPhone 17" log stream --predicate 'process == "Bitkit"' --style compact > "$LOGFILE" &
229+ LOG_PID=$!
230230
231- # # Setup port forwarding for regtest and LND
232- # xcrun simctl spawn "iPhone 17" launchctl load -w /System/Library/LaunchDaemons/com.apple.usbmuxd.plist || true
231+ # Setup port forwarding for regtest and LND
232+ xcrun simctl spawn "iPhone 17" launchctl load -w /System/Library/LaunchDaemons/com.apple.usbmuxd.plist || true
233233
234- # # Cleanup function
235- # cleanup() {
236- # kill "$LOG_PID" 2>/dev/null || true
237- # wait "$LOG_PID" 2>/dev/null || true
238- # }
239- # trap cleanup EXIT INT TERM
234+ # Cleanup function
235+ cleanup() {
236+ kill "$LOG_PID" 2>/dev/null || true
237+ wait "$LOG_PID" 2>/dev/null || true
238+ }
239+ trap cleanup EXIT INT TERM
240240
241- # # Pass everything through to WDIO/Mocha
242- # npm run e2e:ios -- "$@"
243- # env:
244- # RECORD_VIDEO: true
245-
246- # - name: Upload E2E Artifacts (${{ matrix.shard.name }})
247- # if: failure()
248- # uses: actions/upload-artifact@v4
249- # with:
250- # name: e2e-artifacts_${{ matrix.shard.name }}_${{ github.run_number }}
251- # path: bitkit-e2e-tests/artifacts/
252-
253- # - name: Dump docker logs on failure (${{ matrix.shard.name }})
254- # if: failure()
255- # uses: jwalton/gh-docker-logs@v2
241+ # Pass everything through to WDIO/Mocha
242+ npm run e2e:ios -- "$@"
243+ env :
244+ RECORD_VIDEO : true
245+
246+ - name : Upload E2E Artifacts (${{ matrix.shard.name }})
247+ if : failure()
248+ uses : actions/upload-artifact@v4
249+ with :
250+ name : e2e-artifacts_${{ matrix.shard.name }}_${{ github.run_number }}
251+ path : bitkit-e2e-tests/artifacts/
252+
253+ - name : Dump docker logs on failure (${{ matrix.shard.name }})
254+ if : failure()
255+ uses : jwalton/gh-docker-logs@v2
0 commit comments