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
4 changes: 2 additions & 2 deletions .bacon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ test_suites:
sort_order: '5'
timeout: '10'
criteria: MERGE
queue_name: small
queue_name: al2023
- name: snyk
script_path: /root/okta/okta-client-javascript/scripts/bacon
script_name: snyk
sort_order: '7'
timeout: '200'
criteria: MAINLINE
queue_name: small
queue_name: al2023
trigger: AUTO
215 changes: 215 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
version: 2.1

orbs:
general-platform-helpers: okta/general-platform-helpers@1.9.4
platform-helpers: okta/platform-helpers@2.0.0
macos: circleci/macos@2
android: circleci/android@3.1.0

executors:
# android:
# docker:
# - image: cimg/android:2024.12
# environment:
# GRADLE_OPTS: -Xmx2g
# resource_class: large

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

jobs:
test-rn-webcrypto-android:
executor:
name: android/android_machine
resource_class: large
tag: default
steps:
- checkout

- restore_cache:
keys:
- gradle-{{ checksum "packages/react-native-webcrypto-bridge/android/build.gradle" }}
- gradle-

- 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 -PnewArchEnabled=true --info

- save_cache:
key: gradle-{{ checksum "packages/react-native-webcrypto-bridge/android/build.gradle" }}
paths:
- ~/.gradle
- .gradle

- store_test_results:
path: packages/react-native-webcrypto-bridge/android/build/test-results

- store_artifacts:
path: packages/react-native-webcrypto-bridge/android/build/reports
destination: android-test-reports

test-rn-webcrypto-ios:
executor: macos
steps:
- checkout

- restore_cache:
keys:
- swift-spm-{{ checksum "packages/react-native-webcrypto-bridge/ios/Package.swift" }}
- swift-spm-

- run:
name: Run iOS Unit and Integration Tests
command: |
cd packages/react-native-webcrypto-bridge/ios
swift test --verbose

- save_cache:
key: swift-spm-{{ checksum "packages/react-native-webcrypto-bridge/ios/Package.swift" }}
paths:
- packages/react-native-webcrypto-bridge/ios/.build

- store_test_results:
path: packages/react-native-webcrypto-bridge/ios/.build/test-results

- store_artifacts:
path: packages/react-native-webcrypto-bridge/ios/.build
destination: ios-build-artifacts

test-rn-platform-android:
executor:
name: android/android_machine
resource_class: large
tag: default
steps:
- checkout

- restore_cache:
keys:
- 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 -PnewArchEnabled=true --info

- save_cache:
key: gradle-rn-platform-{{ checksum "packages/react-native-platform/android/build.gradle" }}
paths:
- ~/.gradle
- .gradle

- store_test_results:
path: packages/react-native-platform/android/build/test-results

- store_artifacts:
path: packages/react-native-platform/android/build/reports
destination: react-native-platform-android-test-reports

test-rn-platform-ios:
executor: macos
steps:
- checkout

- restore_cache:
keys:
- swift-spm-rn-platform-{{ checksum "packages/react-native-platform/ios/Package.swift" }}
- swift-spm-rn-platform-

- run:
name: Run React Native Platform iOS Tests
command: |
cd packages/react-native-platform/ios
swift test --verbose

- save_cache:
key: swift-spm-rn-platform-{{ checksum "packages/react-native-platform/ios/Package.swift" }}
paths:
- packages/react-native-platform/ios/.build

- store_test_results:
path: packages/react-native-platform/ios/.build/test-results

- store_artifacts:
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
# - eng-platform-helpers/step-load-dependencies

# - run:
# name: Verify secrets loaded
# command: |
# if [ -z "${USERNAME}" ]; then echo "ERROR: USERNAME not loaded"; exit 1; fi
# echo "All secrets loaded successfully"

# - 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: Run OIDC Test App E2E tests
# command: |
# cd e2e/apps/react-native-oidc/android
# ./gradlew connectedAndroidTest

# - 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

# - eng-platform-helpers/job-secrets-obtain:
# name: cache-username
# secret_key: "USERNAME"
# - e2e-oauth-android-tests:
# requires:
# - cache-username
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
3 changes: 2 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 Expand Up @@ -39,3 +38,5 @@ yarn-error.*
*.tsbuildinfo

app-example

.idea/
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