Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 74 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,43 @@ concurrency:
cancel-in-progress: true

jobs:
filter:
name: Detect changed paths
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.filter.outputs.packages }}
rnapp: ${{ steps.filter.outputs.rnapp }}
expo54: ${{ steps.filter.outputs.expo54 }}
expo55: ${{ steps.filter.outputs.expo55 }}
androidapp: ${{ steps.filter.outputs.androidapp }}
appleapp: ${{ steps.filter.outputs.appleapp }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- name: Filter paths
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
packages:
- 'packages/**'
rnapp:
- 'apps/RNApp/**'
expo54:
- 'apps/ExpoApp54/**'
expo55:
- 'apps/ExpoApp55/**'
androidapp:
- 'apps/AndroidApp/**'
appleapp:
- 'apps/AppleApp/**'

check-changeset:
name: Check changeset
runs-on: ubuntu-latest
needs: filter
if: needs.filter.outputs.packages == 'true'
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
Expand All @@ -30,6 +64,8 @@ jobs:
build-lint:
name: Build, lint, typecheck & Jest
runs-on: ubuntu-latest
needs: filter
if: needs.filter.outputs.packages == 'true'
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
Expand All @@ -56,7 +92,16 @@ jobs:
android-androidapp-expo:
name: Android road test (RNApp & AndroidApp - Expo ${{ matrix.version }})
runs-on: ubuntu-latest
needs: build-lint
needs: [filter, build-lint]
if: |
always() &&
(
needs.filter.outputs.expo54 == 'true' ||
needs.filter.outputs.expo55 == 'true' ||
needs.filter.outputs.androidapp == 'true' ||
needs.filter.outputs.packages == 'true'
) &&
(needs.build-lint.result == 'success' || needs.build-lint.result == 'skipped')
strategy:
matrix:
include:
Expand All @@ -77,7 +122,15 @@ jobs:
android-androidapp-vanilla:
name: Android road test (RNApp & AndroidApp - Vanilla)
runs-on: ubuntu-latest
needs: build-lint
needs: [filter, build-lint]
if: |
always() &&
(
needs.filter.outputs.rnapp == 'true' ||
needs.filter.outputs.androidapp == 'true' ||
needs.filter.outputs.packages == 'true'
) &&
(needs.build-lint.result == 'success' || needs.build-lint.result == 'skipped')

steps:
- name: Checkout
Expand All @@ -93,7 +146,15 @@ jobs:
ios-appleapp-vanilla:
name: iOS road test (RNApp & AppleApp - Vanilla)
runs-on: macos-26
needs: build-lint
needs: [filter, build-lint]
if: |
always() &&
(
needs.filter.outputs.rnapp == 'true' ||
needs.filter.outputs.appleapp == 'true' ||
needs.filter.outputs.packages == 'true'
) &&
(needs.build-lint.result == 'success' || needs.build-lint.result == 'skipped')

steps:
- name: Checkout
Expand All @@ -108,7 +169,16 @@ jobs:
ios-appleapp-expo:
name: iOS road test (RNApp & AppleApp - Expo ${{ matrix.version }})
runs-on: macos-26
needs: build-lint
needs: [filter, build-lint]
if: |
always() &&
(
needs.filter.outputs.expo54 == 'true' ||
needs.filter.outputs.expo55 == 'true' ||
needs.filter.outputs.appleapp == 'true' ||
needs.filter.outputs.packages == 'true'
) &&
(needs.build-lint.result == 'success' || needs.build-lint.result == 'skipped')
strategy:
matrix:
include:
Expand Down
1 change: 1 addition & 0 deletions apps/RNApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ To learn more about React Native, take a look at the following resources:
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.

Loading