Skip to content

Commit d94cb1c

Browse files
committed
WIP
1 parent 79fe541 commit d94cb1c

File tree

1 file changed

+106
-105
lines changed

1 file changed

+106
-105
lines changed

.github/workflows/e2e-self-hosted.yml

Lines changed: 106 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -21,97 +21,97 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24-
build:
25-
runs-on: [self-hosted, macOS]
26-
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v4
30-
31-
- name: System Information
32-
run: |
33-
echo "=== System Information ==="
34-
echo "macOS Version:"
35-
sw_vers
36-
echo ""
37-
echo "Xcode Version:"
38-
xcodebuild -version
39-
40-
- name: Setup iOS Simulator
41-
run: |
42-
# Set simulator name
43-
SIMULATOR_NAME="iPhone 17"
44-
echo "SIMULATOR_NAME=$SIMULATOR_NAME" >> $GITHUB_ENV
24+
# build:
25+
# runs-on: [self-hosted, macOS]
26+
27+
# steps:
28+
# - name: Checkout
29+
# uses: actions/checkout@v4
30+
31+
# - name: System Information
32+
# run: |
33+
# echo "=== System Information ==="
34+
# echo "macOS Version:"
35+
# sw_vers
36+
# echo ""
37+
# echo "Xcode Version:"
38+
# xcodebuild -version
39+
40+
# - name: Setup iOS Simulator
41+
# run: |
42+
# # Set simulator name
43+
# SIMULATOR_NAME="iPhone 17"
44+
# echo "SIMULATOR_NAME=$SIMULATOR_NAME" >> $GITHUB_ENV
4545

46-
# Boot the iPhone 17 simulator if not already running
47-
if ! xcrun simctl list devices | grep "iPhone 17" | grep -q "Booted"; then
48-
echo "Booting $SIMULATOR_NAME..."
49-
xcrun simctl boot "$SIMULATOR_NAME"
46+
# # Boot the iPhone 17 simulator if not already running
47+
# if ! xcrun simctl list devices | grep "iPhone 17" | grep -q "Booted"; then
48+
# echo "Booting $SIMULATOR_NAME..."
49+
# xcrun simctl boot "$SIMULATOR_NAME"
5050

51-
# Wait for simulator to boot
52-
for i in {1..30}; do
53-
if xcrun simctl list devices | grep "$SIMULATOR_NAME" | grep -q "Booted"; then
54-
echo "$SIMULATOR_NAME is booted!"
55-
break
56-
fi
57-
echo "Waiting for $SIMULATOR_NAME boot... ($i/30)"
58-
sleep 5
59-
done
60-
else
61-
echo "$SIMULATOR_NAME is already booted!"
62-
fi
51+
# # Wait for simulator to boot
52+
# for i in {1..30}; do
53+
# if xcrun simctl list devices | grep "$SIMULATOR_NAME" | grep -q "Booted"; then
54+
# echo "$SIMULATOR_NAME is booted!"
55+
# break
56+
# fi
57+
# echo "Waiting for $SIMULATOR_NAME boot... ($i/30)"
58+
# sleep 5
59+
# done
60+
# else
61+
# echo "$SIMULATOR_NAME is already booted!"
62+
# fi
6363

64-
# Wait for simulator to be fully ready
65-
sleep 15
64+
# # Wait for simulator to be fully ready
65+
# sleep 15
6666

67-
# Launch simulator app
68-
open -a Simulator
69-
70-
- name: Clean build environment
71-
run: |
72-
# Clean any existing build artifacts
73-
rm -rf DerivedData
74-
rm -rf ~/Library/Developer/Xcode/DerivedData
67+
# # Launch simulator app
68+
# open -a Simulator
69+
70+
# - name: Clean build environment
71+
# run: |
72+
# # Clean any existing build artifacts
73+
# rm -rf DerivedData
74+
# rm -rf ~/Library/Developer/Xcode/DerivedData
7575

76-
# Clean Swift Package Manager caches
77-
rm -rf ~/Library/Caches/org.swift.swiftpm
78-
rm -rf ~/Library/org.swift.swiftpm
76+
# # Clean Swift Package Manager caches
77+
# rm -rf ~/Library/Caches/org.swift.swiftpm
78+
# rm -rf ~/Library/org.swift.swiftpm
7979

80-
# Reset package caches
81-
xcodebuild -resolvePackageDependencies -workspace Bitkit.xcodeproj/project.xcworkspace -scheme Bitkit
82-
83-
- name: Build iOS app
84-
env:
85-
GITHUB_ACTOR: ${{ github.actor }}
86-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87-
CHATWOOT_API: ${{ secrets.CHATWOOT_API }}
88-
E2E: true
89-
run: |
90-
echo "=== Building iOS app ==="
80+
# # Reset package caches
81+
# xcodebuild -resolvePackageDependencies -workspace Bitkit.xcodeproj/project.xcworkspace -scheme Bitkit
82+
83+
# - name: Build iOS app
84+
# env:
85+
# GITHUB_ACTOR: ${{ github.actor }}
86+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
# CHATWOOT_API: ${{ secrets.CHATWOOT_API }}
88+
# E2E: true
89+
# run: |
90+
# echo "=== Building iOS app ==="
9191

92-
# Ensure iOS Simulator platform is available
93-
xcodebuild -downloadPlatform iOS || echo "iOS platform already installed"
92+
# # Ensure iOS Simulator platform is available
93+
# xcodebuild -downloadPlatform iOS || echo "iOS platform already installed"
9494

95-
# Build for iOS Simulator
96-
xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
97-
-scheme Bitkit \
98-
-configuration Debug \
99-
-destination "platform=iOS Simulator,name=$SIMULATOR_NAME" \
100-
-derivedDataPath DerivedData \
101-
-allowProvisioningUpdates \
102-
build
103-
104-
- name: Prepare app for E2E tests
105-
run: |
106-
# Copy the .app bundle to the expected location and name
107-
mkdir -p e2e-app
108-
cp -r DerivedData/Build/Products/Debug-iphonesimulator/Bitkit.app e2e-app/bitkit.app
109-
110-
- name: Upload iOS app
111-
uses: actions/upload-artifact@v4
112-
with:
113-
name: bitkit-e2e-ios_${{ github.run_number }}
114-
path: e2e-app/
95+
# # Build for iOS Simulator
96+
# xcodebuild -workspace Bitkit.xcodeproj/project.xcworkspace \
97+
# -scheme Bitkit \
98+
# -configuration Debug \
99+
# -destination "platform=iOS Simulator,name=$SIMULATOR_NAME" \
100+
# -derivedDataPath DerivedData \
101+
# -allowProvisioningUpdates \
102+
# build
103+
104+
# - name: Prepare app for E2E tests
105+
# run: |
106+
# # Copy the .app bundle to the expected location and name
107+
# mkdir -p e2e-app
108+
# cp -r DerivedData/Build/Products/Debug-iphonesimulator/Bitkit.app e2e-app/bitkit.app
109+
110+
# - name: Upload iOS app
111+
# uses: actions/upload-artifact@v4
112+
# with:
113+
# name: bitkit-e2e-ios_${{ github.run_number }}
114+
# path: e2e-app/
115115

116116
e2e-tests:
117117
runs-on: [self-hosted, macOS]
@@ -142,31 +142,31 @@ jobs:
142142
path: bitkit-e2e-tests
143143
ref: ${{ github.event.inputs.e2e_branch || 'main' }}
144144

145-
- name: Download iOS app
146-
uses: actions/download-artifact@v4
147-
with:
148-
name: bitkit-e2e-ios_${{ github.run_number }}
149-
path: bitkit-e2e-tests/aut
145+
# - name: Download iOS app
146+
# uses: actions/download-artifact@v4
147+
# with:
148+
# name: bitkit-e2e-ios_${{ github.run_number }}
149+
# path: bitkit-e2e-tests/aut
150150

151-
- name: List iOS app directory contents
152-
run: ls -l bitkit-e2e-tests/aut
151+
# - name: List iOS app directory contents
152+
# run: ls -l bitkit-e2e-tests/aut
153153

154-
- name: Setup Node.js
155-
uses: actions/setup-node@v4
156-
with:
157-
node-version: 22
154+
# - name: Setup Node.js
155+
# uses: actions/setup-node@v4
156+
# with:
157+
# node-version: 22
158158

159-
- name: Cache npm cache
160-
uses: actions/cache@v3
161-
with:
162-
path: ~/.npm
163-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
164-
restore-keys: |
165-
${{ runner.os }}-node-
159+
# - name: Cache npm cache
160+
# uses: actions/cache@v3
161+
# with:
162+
# path: ~/.npm
163+
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
164+
# restore-keys: |
165+
# ${{ runner.os }}-node-
166166

167-
- name: Install dependencies
168-
working-directory: bitkit-e2e-tests
169-
run: npm ci
167+
# - name: Install dependencies
168+
# working-directory: bitkit-e2e-tests
169+
# run: npm ci
170170

171171
# - name: Install Docker
172172
# run: |
@@ -189,13 +189,14 @@ jobs:
189189
docker --version
190190
docker info
191191
docker ps
192+
docker compose version
192193
193194
- name: Run regtest setup
194195
working-directory: bitkit-e2e-tests
195196
run: |
196197
cd docker
197198
mkdir lnd && chmod 777 lnd
198-
docker-compose --verbose up
199+
docker compose --verbose up
199200
200201
# - name: Wait for electrum server and LND
201202
# working-directory: bitkit-e2e-tests

0 commit comments

Comments
 (0)