Skip to content

Update react-native vulns #339

Update react-native vulns

Update react-native vulns #339

name: Okta React Native
on:
push:
branches: [ master ]
pull_request:
jobs:
JSUnitTests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure React Native dependencies (node_modules)
uses: ./.github/workflows/composite/configure-node
with:
node-path: ./node_modules
lock-hash: ${{ hashFiles('yarn.lock') }}
- run: sudo apt-get install -y libappindicator1
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Execute snyk.sh
run: bash ./scripts/snyk.sh
iOSUnitTests:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Configure React Native dependencies (node_modules)
uses: ./.github/workflows/composite/configure-node
with:
node-path: ./node_modules
lock-hash: ${{ hashFiles('yarn.lock') }}
- name: Cache CocoaPods
id: pods-cache
uses: actions/cache@v3
with:
path: ./ios/Pods
key: pods-${{ hashFiles('./ios/Podfile.lock') }}
- name: Preparation before iOS Build
run: |
pod install --project-directory=ios --repo-update
- name: iOS
run: |
set -o pipefail
xcodebuild \
-workspace ios/ReactNativeOktaSdkBridge.xcworkspace \
-scheme "ReactNativeOktaSdkBridge" \
-destination "platform=iOS Simulator,OS=latest,name=iPhone 14" \
clean test | xcpretty