Skip to content

Commit fa10183

Browse files
committed
[ci] Split Test All into per-area workflows filtered by paths-ignore
1 parent 4e26a0b commit fa10183

13 files changed

Lines changed: 417 additions & 303 deletions

File tree

‎.github/workflow-scripts/upload-test-results.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This source code is licensed under the MIT license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
# Copies Test All's test results for one run attempt to GCS, for
7+
# Copies a test workflow's test results for one run attempt to GCS, for
88
# upload-test-results.yml. Artifacts, including those from forks, are treated
99
# as inert data: only each one's results.json is copied, after validation, and
1010
# nothing in them is executed.

‎.github/workflows/test-all.yml‎

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

‎.github/workflows/test-android.yml‎

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,83 @@
11
name: Test Android
22

33
on:
4-
workflow_call:
4+
workflow_dispatch:
5+
pull_request:
6+
# A pull request whose changed files all match these patterns doesn't
7+
# need this platform tested.
8+
paths-ignore:
9+
# Not code
10+
- '**/*.md'
11+
- '**/__docs__/**'
12+
- '**/LICENSE'
13+
# Apple sources and build files
14+
- 'packages/react-native/React/**'
15+
- 'packages/react-native/ReactApple/**'
16+
- 'packages/react-native/Libraries/**/*.h'
17+
- '**/*.m'
18+
- '**/*.mm'
19+
- '**/*.swift'
20+
- '**/*.podspec'
21+
- '**/*.rb'
22+
- '**/*.ios.js'
23+
- '**/Gemfile'
24+
- '**/Gemfile.lock'
25+
- '**/Podfile'
26+
- '**/Podfile.lock'
27+
- '**/.xcode.env'
28+
- '**/*.xcodeproj/**'
29+
- '**/*.xcworkspace/**'
30+
- '**/ios/**'
31+
- '**/apple/**'
32+
- 'packages/rn-tester/RNTester*/**'
33+
# CocoaPods, SwiftPM and prebuild tooling
34+
- 'packages/react-native/scripts/cocoapods/**'
35+
- 'packages/react-native/scripts/ios-prebuild/**'
36+
- 'packages/react-native/scripts/react_native_pods_utils/**'
37+
- 'packages/react-native/scripts/spm/**'
38+
- 'packages/react-native/scripts/swiftpm/**'
39+
- 'packages/react-native/scripts/xcode/**'
40+
- 'packages/react-native/scripts/ios-prebuild.js'
41+
- 'packages/react-native/scripts/react-native-xcode.sh'
42+
- 'packages/react-native/scripts/setup-apple-spm.js'
43+
- 'packages/react-native/third-party-podspecs/**'
44+
- 'scripts/process-podspecs.sh'
45+
- 'scripts/releases/ios-prebuild/**'
46+
- 'scripts/releases/prepare-ios-prebuilds.js'
47+
- 'scripts/validate-ios-test-env.sh'
48+
# iOS CI
49+
- '.github/workflows/test-cxx.yml'
50+
- '.github/workflows/test-js.yml'
51+
- '.github/workflows/bump-podfile-lock.yml'
52+
- '.github/workflows/e2e-ios-*.yml'
53+
- '.github/workflows/prebuild-ios-*.yml'
54+
- '.github/workflows/test-ios.yml'
55+
- '.github/workflows/test-ios-spm-newapp.yml'
56+
- '.github/actions/maestro-ios/**'
57+
- '.github/actions/prepare-ios-tests/**'
58+
- '.github/actions/setup-spm-artifacts/**'
59+
- '.github/actions/setup-xcode/**'
60+
- '.github/actions/test-ios-helloworld/**'
61+
- '.github/actions/test-ios-rntester/**'
62+
push:
63+
branches:
64+
- main
65+
- '*-stable'
66+
67+
permissions:
68+
contents: read
69+
actions: read
70+
71+
concurrency:
72+
# A new push to a pull request makes the previous run obsolete, so cancel it
73+
# instead of spending (macOS) runner time on it. Runs on branches are never
74+
# cancelled: each one gets its own group.
75+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
76+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
577

678
jobs:
779
build_android:
80+
if: github.repository == 'react/react-native'
881
runs-on: 8-core-ubuntu
982
container:
1083
image: reactnativecommunity/react-native-android:latest

0 commit comments

Comments
 (0)