Skip to content

Commit 638ec11

Browse files
committed
Clean up GHA config
1 parent a3a602b commit 638ec11

6 files changed

Lines changed: 45 additions & 225 deletions

File tree

.azurepipelines/build-rn-code-push-1es.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.

.azurepipelines/test-rn-code-push.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/ci-test.yml

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,60 @@ name: CI Tests
22

33
on:
44
pull_request:
5-
types: [opened, edited]
65
workflow_dispatch:
76

87
jobs:
9-
android-new-arch-test:
10-
runs-on: self-hosted
8+
lint:
9+
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v7
1312

14-
- name: Run Android Tests
15-
run: |
16-
npm install
17-
npm run test:android
13+
- uses: jdx/mise-action@v4
14+
15+
- name: Install dependencies
16+
run: npm install
1817

18+
- name: Lint and type-check
19+
run: npm run build:tests
1920

20-
ios-new-arch-test:
21-
runs-on: self-hosted
21+
android-test:
22+
needs: lint
23+
runs-on: bitrise-react-native-code-push-linux-runner
2224
steps:
23-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v7
2426

25-
- name: Run iOS Tests
26-
run: |
27-
npm install
28-
npm run test:ios
27+
- uses: jdx/mise-action@v4
2928

30-
android-old-arch-test:
31-
runs-on: self-hosted
32-
steps:
33-
- uses: actions/checkout@v3
29+
- name: Install dependencies
30+
run: npm install
3431

35-
- name: Run Android Tests
32+
- name: Enable KVM
3633
run: |
37-
npm install
38-
npm run test:oldArch:android
34+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
35+
sudo udevadm control --reload-rules
36+
sudo udevadm trigger --name-match=kvm
3937
40-
ios-old-arch-test:
41-
runs-on: self-hosted
38+
- name: Run Android Tests
39+
uses: reactivecircus/android-emulator-runner@v2
40+
env:
41+
# Tests need `emulator` to be in $PATH.
42+
PATH: /usr/local/lib/android/sdk/emulator:/usr/local/lib/android/sdk/platform-tools:${{ env.PATH }}
43+
with:
44+
api-level: 27
45+
target: google_apis
46+
arch: x86
47+
disable-animations: true
48+
script: npm run test:android
49+
50+
ios-test:
51+
needs: lint
52+
runs-on: bitrise-react-native-code-push-macos-runner
4253
steps:
43-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v7
55+
56+
- uses: jdx/mise-action@v4
4457

4558
- name: Run iOS Tests
4659
run: |
4760
npm install
48-
npm run test:oldArch:ios
61+
npm run test:ios

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,5 @@ Examples/testapp_rn
195195

196196
#CodePushExpoDemoApp
197197
*.rm
198+
199+
.claude/settings.local.json

mise.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
node = "22"
3+
java = "17"

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class RNIOS extends Platform.IOS implements RNPlatform {
285285
return this.getEmulatorManager().getTargetEmulator()
286286
.then((targetEmulator: string) => {
287287
return TestUtil.getProcessOutput("xcodebuild -workspace " + path.join(iOSProject, TestConfig.TestAppName) + ".xcworkspace -scheme " + TestConfig.TestAppName +
288-
" -configuration Release -destination \"platform=iOS Simulator,id=" + targetEmulator + "\" -derivedDataPath build EXCLUDED_ARCHS=arm64", { cwd: iOSProject, timeout: 30 * 60 * 1000, maxBuffer: 1024 * 1024 * 5000, noLogStdOut: true });
288+
" -configuration Release -destination \"platform=iOS Simulator,id=" + targetEmulator + "\" -derivedDataPath build", { cwd: iOSProject, timeout: 10 * 60 * 1000, maxBuffer: 1024 * 1024 * 5000, noLogStdOut: true });
289289
})
290290
.then<void>(
291291
() => { return null; },

0 commit comments

Comments
 (0)