Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Releasing version 9.4.0 #184

Releasing version 9.4.0

Releasing version 9.4.0 #184

Workflow file for this run

name: Tests
on: [push]
jobs:
tsc:
runs-on: ubuntu-latest
name: Typescript
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- run: yarn && yarn tsc
js-tests:
runs-on: ubuntu-latest
name: JS tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- run: yarn && yarn test
android-tests:
runs-on: ubuntu-latest
name: Android tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- run: yarn && cd android && ./gradlew test
# ripped from these two places:
# https://vmois.dev/xcode-github-actions/
# https://gist.github.com/ricardopereira/10198e68f27c14601d77ebc7a8352da1
ios-tests:
runs-on: macos-12
strategy:
matrix:
destination: ['platform=iOS Simulator,name=iPhone 13,OS=16.2']
name: iOS tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- uses: actions/cache@v3
id: cocoapods-cache
with:
path: ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock', 'package-lock.json', 'yarn.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: CocoaPods
run: cd ios && yarn && pod install
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_14.2.app && /usr/bin/xcodebuild -version
- name: Run tests
run: cd ios && xcodebuild -quiet -workspace LaunchdarklyReactNativeClient.xcworkspace -scheme LaunchdarklyReactNativeClient -sdk iphonesimulator -destination "${destination}" test | xcpretty && exit ${PIPESTATUS[0]}
env:
destination: ${{ matrix.destination }}