Skip to content

Commit 5ab9d6f

Browse files
committed
chore: revert test code
1 parent 512875e commit 5ab9d6f

File tree

7 files changed

+31
-135
lines changed

7 files changed

+31
-135
lines changed

.github/workflows/e2e-android.yml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
branches:
99
- 'master'
1010

11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: true
14-
1511
jobs:
1612
e2e-android:
1713
runs-on: ubuntu-latest
@@ -115,9 +111,7 @@ jobs:
115111
- name: Kill java processes
116112
run: pkill -9 -f java || true
117113

118-
- name: Run tests attempt 1
119-
id: attempt1
120-
continue-on-error: true
114+
- name: run tests
121115
uses: reactivecircus/android-emulator-runner@v2
122116
with:
123117
avd-name: Pixel_API_31_AOSP
@@ -128,37 +122,7 @@ jobs:
128122
arch: x86_64
129123
disable-animations: true
130124
working-directory: example
131-
script: yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all --artifacts-location /mnt/artifacts
132-
133-
- name: Run tests attempt 2
134-
if: steps.attempt1.outcome != 'success'
135-
id: attempt2
136-
continue-on-error: true
137-
uses: reactivecircus/android-emulator-runner@v2
138-
with:
139-
avd-name: Pixel_API_31_AOSP
140-
profile: 5.4in FWVGA
141-
api-level: 31
142-
force-avd-creation: false
143-
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047
144-
arch: x86_64
145-
disable-animations: true
146-
working-directory: example
147-
script: yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all --artifacts-location /mnt/artifacts
148-
149-
- name: Run tests attempt 3 (final)
150-
if: steps.attempt2.outcome != 'success'
151-
uses: reactivecircus/android-emulator-runner@v2
152-
with:
153-
avd-name: Pixel_API_31_AOSP
154-
profile: 5.4in FWVGA
155-
api-level: 31
156-
force-avd-creation: false
157-
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047
158-
arch: x86_64
159-
disable-animations: true
160-
working-directory: example
161-
script: yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all --artifacts-location /mnt/artifacts
125+
script: yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all --artifacts-location /mnt/artifacts || yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all --artifacts-location /mnt/artifactsyarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all --artifacts-location /mnt/artifacts || yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all --artifacts-location /mnt/artifacts
162126

163127
- uses: actions/upload-artifact@v4
164128
if: failure()

.github/workflows/e2e-ios.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
branches:
1212
- 'master'
1313

14-
concurrency:
15-
group: ${{ github.workflow }}-${{ github.ref }}
16-
cancel-in-progress: true
17-
1814
jobs:
1915
e2e-ios:
2016
runs-on: macos-14
@@ -51,18 +47,11 @@ jobs:
5147
path: example/ios/Pods
5248
key: pods-${{ hashFiles('**/Podfile.lock') }}
5349

54-
- name: Clean CocoaPods cache
55-
run: |
56-
rm -rf ~/Library/Caches/CocoaPods
57-
pod cache clean --all || true
58-
5950
- name: Install pods
6051
working-directory: example
61-
env:
62-
COCOAPODS_DISABLE_CHECKSUM: true
6352
run: |
6453
gem update cocoapods xcodeproj
65-
pod install --project-directory=ios || pod install --project-directory=ios
54+
pod install --project-directory=ios
6655
6756
- name: Install applesimutils
6857
run: |

.github/workflows/example-lint-check.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
branches:
66
- 'master'
77

8-
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
11-
128
defaults:
139
run:
1410
working-directory: example

.github/workflows/lib-lint-check.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
branches:
66
- 'master'
77

8-
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
11-
128
defaults:
139
run:
1410
working-directory: lib

.github/workflows/mocha-android.yml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
branches:
99
- 'master'
1010

11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: true
14-
1511
jobs:
1612
mocha-android:
1713
runs-on: ubuntu-latest
@@ -77,31 +73,11 @@ jobs:
7773
mkdir lnd
7874
mkdir clightning
7975
chmod 777 lnd clightning
80-
docker compose up -d --quiet-pull
76+
docker-compose up -d --quiet-pull
8177
82-
- name: Wait for electrum server, LND and CLightning
83-
timeout-minutes: 5
84-
run: |
85-
# Wait for Electrum
86-
while ! nc -z '127.0.0.1' 60001; do
87-
echo "Waiting for Electrum..."
88-
sleep 1
89-
done
90-
echo "Electrum is ready!"
91-
92-
# Wait for LND macaroon file
93-
sudo bash -c "while [ ! -f example/docker/lnd/admin.macaroon ]; do echo 'Waiting for LND macaroon...'; sleep 2; done"
94-
sudo chmod -R 777 example/docker/lnd
95-
echo "LND macaroon found!"
96-
97-
# Wait for CLightning to be ready
98-
while ! docker logs clightning 2>&1 | grep -q "Server started with public key"; do
99-
echo "Waiting for CLightning..."
100-
sleep 2
101-
done
102-
echo "CLightning is ready!"
103-
104-
echo "All services ready!"
78+
- name: Wait for electrum server
79+
timeout-minutes: 2
80+
run: while ! nc -z '127.0.0.1' 60001; do sleep 1; done
10581

10682
- name: Install lib dependencies
10783
working-directory: lib
@@ -142,7 +118,6 @@ jobs:
142118
npx react-native run-android --no-packager
143119
144120
- name: run tests
145-
timeout-minutes: 30
146121
uses: reactivecircus/android-emulator-runner@v2
147122
with:
148123
api-level: 34

.github/workflows/mocha-ios.yml

Lines changed: 23 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ on:
1111
branches:
1212
- 'master'
1313

14-
concurrency:
15-
group: ${{ github.workflow }}-${{ github.ref }}
16-
cancel-in-progress: true
17-
1814
jobs:
1915
mocha-ios:
2016
runs-on: macos-13
@@ -26,12 +22,23 @@ jobs:
2622
with:
2723
fetch-depth: 1
2824

29-
- name: Setup Docker Colima
30-
run: |
31-
brew install docker docker-compose colima
32-
mkdir -p ~/.docker/cli-plugins
33-
ln -sfn /opt/homebrew/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose || true
34-
colima start --cpu 4 --memory 8 --disk 100
25+
- name: Setup Docker Colima 1
26+
uses: douglascamata/[email protected]
27+
28+
id: docker1
29+
continue-on-error: true
30+
with:
31+
lima: v0.18.0
32+
colima: v0.5.6
33+
34+
- name: Setup Docker Colima 2
35+
if: steps.docker1.outcome != 'success'
36+
uses: douglascamata/[email protected]
37+
38+
id: docker2
39+
with:
40+
lima: v0.18.0
41+
colima: v0.5.6
3542

3643
- name: Install backup-server dependencies
3744
working-directory: backup-server
@@ -43,34 +50,11 @@ jobs:
4350
mkdir lnd
4451
mkdir clightning
4552
chmod 777 lnd clightning
46-
docker compose up -d --quiet-pull
53+
docker-compose up -d --quiet-pull
4754
48-
- name: Wait for electrum server, LND and CLightning
49-
timeout-minutes: 5
50-
run: |
51-
# Wait for Electrum
52-
while ! nc -z '127.0.0.1' 60001; do
53-
echo "Waiting for Electrum..."
54-
sleep 1
55-
done
56-
echo "Electrum is ready!"
57-
58-
# Wait for LND macaroon file
59-
cd example
60-
while [ ! -f docker/lnd/admin.macaroon ]; do
61-
echo "Waiting for LND macaroon..."
62-
sleep 2
63-
done
64-
echo "LND macaroon found!"
65-
66-
# Wait for CLightning to be ready
67-
while ! docker logs clightning 2>&1 | grep -q "Server started with public key"; do
68-
echo "Waiting for CLightning..."
69-
sleep 2
70-
done
71-
echo "CLightning is ready!"
72-
73-
echo "All services ready!"
55+
- name: Wait for electrum server
56+
timeout-minutes: 2
57+
run: while ! nc -z '127.0.0.1' 60001; do sleep 1; done
7458

7559
- name: Node
7660
uses: actions/setup-node@v4
@@ -97,18 +81,11 @@ jobs:
9781
path: example/ios/Pods
9882
key: pods-${{ hashFiles('**/Podfile.lock') }}
9983

100-
- name: Clean CocoaPods cache
101-
run: |
102-
rm -rf ~/Library/Caches/CocoaPods
103-
pod cache clean --all || true
104-
10584
- name: Install pods
10685
working-directory: example
107-
env:
108-
COCOAPODS_DISABLE_CHECKSUM: true
10986
run: |
11087
gem update cocoapods xcodeproj
111-
pod install --project-directory=ios || pod install --project-directory=ios
88+
pod install --project-directory=ios
11289
11390
- name: Install applesimutils
11491
run: |
@@ -117,10 +94,9 @@ jobs:
11794
11895
- name: Build
11996
working-directory: example
120-
run: npx react-native run-ios --no-packager --simulator='iPhone 15'
97+
run: npx react-native run-ios --no-packager --simulator='iPhone 14'
12198

12299
- name: Test iOS app
123-
timeout-minutes: 30
124100
working-directory: example
125101
run: yarn test:mocha:ios
126102

example/.detoxrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
simulator: {
3939
type: 'ios.simulator',
4040
device: {
41-
type: 'iPhone 15'
41+
type: 'iPhone 14'
4242
}
4343
},
4444
attached: {

0 commit comments

Comments
 (0)