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
81 changes: 75 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ executors:

macos:
macos:
xcode: "16.3"
xcode: 26.4.1
resource_class: m4pro.medium

jobs:
Expand All @@ -34,10 +34,16 @@ jobs:
- gradle-

- run:
name: Run Android Unit and Integration Tests
name: Setup Node and install dependencies
command: |
cd packages/react-native-webcrypto-bridge/android
./gradlew testDebugUnitTest --info
npm i -g yarn@1.22.22
yarn install --frozen-lockfile

- run:
name: Run React Native Platform Android Tests
command: |
cd packages/react-native-platform/android
./gradlew testDebugUnitTest -PnewArchEnabled=true --info

- save_cache:
key: gradle-{{ checksum "packages/react-native-webcrypto-bridge/android/build.gradle" }}
Expand Down Expand Up @@ -93,11 +99,17 @@ jobs:
- gradle-rn-platform-{{ checksum "packages/react-native-platform/android/build.gradle" }}
- gradle-rn-platform-

- run:
name: Setup Node and install dependencies
command: |
npm i -g yarn@1.22.22
yarn install --frozen-lockfile

- run:
name: Run React Native Platform Android Tests
command: |
cd packages/react-native-platform/android
./gradlew testDebugUnitTest --info
./gradlew testDebugUnitTest -PnewArchEnabled=true --info

- save_cache:
key: gradle-rn-platform-{{ checksum "packages/react-native-platform/android/build.gradle" }}
Expand Down Expand Up @@ -140,11 +152,68 @@ jobs:
path: packages/react-native-platform/ios/.build
destination: react-native-platform-ios-build-artifacts

e2e-oauth-android-tests:
executor:
name: android/android_machine
resource_class: large
tag: default
environment:
GRADLE_OPTS: -Xmx4g
steps:
- checkout

- restore_cache:
keys:
- gradle-e2e-oauth-{{ checksum "e2e/apps/react-native-oidc/android/app/build.gradle" }}
- gradle-e2e-oauth-

- run:
name: Setup Node and install dependencies
command: |
npm i -g yarn@1.22.22
yarn install --frozen-lockfile

- run:
name: Build E2E OAuth test app (release build)
command: |
cd e2e/apps/react-native-oidc/android
./gradlew assembleRelease assembleAndroidTest -PnewArchEnabled=true --info

- run:
name: Run E2E OAuth Espresso tests
command: |
cd e2e/apps/react-native-oidc/android
./gradlew connectedAndroidTest \
-Pandroid.testInstrumentationRunnerArguments.class=com.anonymous.reporeactnativeoidc.AppLaunchTest \
--info

- run:
name: Run E2E OAuth hybrid tests (Espresso + UIAutomator)
command: |
cd e2e/apps/react-native-oidc/android
./gradlew connectedAndroidTest \
-Pandroid.testInstrumentationRunnerArguments.class=com.anonymous.reporeactnativeoidc.OAuthLoginTest \
--info

- save_cache:
key: gradle-e2e-oauth-{{ checksum "e2e/apps/react-native-oidc/android/app/build.gradle" }}
paths:
- ~/.gradle
- .gradle

- store_test_results:
path: e2e/apps/react-native-oidc/android/app/build/outputs/androidTest-results

- store_artifacts:
path: e2e/apps/react-native-oidc/android/app/build/reports
destination: e2e-oauth-android-test-reports

workflows:
version: 2
build_and_test:
jobs:
- test-rn-webcrypto-android
- test-rn-webcrypto-ios
- test-rn-platform-android
- test-rn-platform-ios
# - test-rn-platform-ios
# - e2e-oauth-android-tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ docs/api/*
out/
build
dist
.build


# Debug
Expand Down
1 change: 0 additions & 1 deletion e2e/apps/react-native-oidc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dist/
web-build/
expo-env.d.ts
ios/
android/

# Native
.kotlin/
Expand Down
17 changes: 17 additions & 0 deletions e2e/apps/react-native-oidc/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# OSX
#
.DS_Store

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
.cxx/

# Bundle artifacts
*.jsbundle
.claude/
Loading