From 7051978d046a1e098cac49efc0c9cea558d25369 Mon Sep 17 00:00:00 2001 From: Kacper Cyranowski Date: Thu, 20 Jun 2024 20:16:41 +0200 Subject: [PATCH] fix: ci --- .github/actions/setup_test_project/action.yml | 15 +++++++-------- package.json | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/actions/setup_test_project/action.yml b/.github/actions/setup_test_project/action.yml index 7379bd27..bb4a140b 100644 --- a/.github/actions/setup_test_project/action.yml +++ b/.github/actions/setup_test_project/action.yml @@ -49,17 +49,16 @@ runs: ${{ runner.os }}-${{ inputs.REACT_NATIVE_VERSION }}-yarn-${{ hashFiles('**/yarn.lock') }} ${{ runner.os }}-${{ inputs.REACT_NATIVE_VERSION }}-yarn- - # - name: Copy project files - # run: node ./scripts/copyExampleProjectFiles.js - # shell: bash - # env: - # REACT_NATIVE_VERSION: ${{ inputs.REACT_NATIVE_VERSION }} - # BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - # IS_EXPO: ${{ inputs.IS_EXPO || 'false'}} + - name: Copy project files + run: node ./scripts/copyExampleProjectFiles.js + shell: bash + env: + REACT_NATIVE_VERSION: ${{ inputs.REACT_NATIVE_VERSION }} + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + IS_EXPO: ${{ inputs.IS_EXPO || 'false'}} - name: Install dependencies if: steps.yarn-cache.outputs.cache-hit != 'true' run: | - yarn install --cwd example yarn install shell: bash diff --git a/package.json b/package.json index eafc3b43..4743421c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a", "test:android": "cd test_project/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a", "build:ios": "cd example/ios && xcodebuild -workspace BlePlxExample.xcworkspace -scheme BlePlxExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO", - "test:ios": "cd test_project/ios && xcodebuild -workspace BlePlxExample.xcworkspace -scheme BlePlxExample -configuration Debug -sdk iphonesimulator ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO", + "test:ios": "cd test_project/ios && npm run install && xcodebuild -workspace BlePlxExample.xcworkspace -scheme BlePlxExample -configuration Debug -sdk iphonesimulator ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO", "test:expo": "cd test_project && npx expo prebuild", "bootstrap": "yarn example && yarn install && yarn example pods", "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build plugin/build lib",