diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index bf7f074..c8c0897 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -63,15 +63,18 @@ jobs: run: yarn build:tvos > build.log - name: Extract outputh path working-directory: ${{ matrix.scheme }} - run: | - path=$(grep -o '^Touch .*\.app' build.log | sed 's/Touch //') - echo "APP_PATH=$path" >> $GITHUB_ENV - - name: Display path - run: 'echo "Extracted Path from Environment Variable: $APP_PATH"' - # uses: sersoft-gmbh/xcodebuild-action@v3 - # with: - # workspace: ${{ matrix.scheme }}/ios/${{ matrix.scheme }}.xcworkspace - # scheme: ${{ matrix.scheme }}-tvOS - # destination: platform=TvOS Simulator,name=Apple TV - # action: clean build - # build-settings: CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + run: path=$(grep -o '^Touch .*\.app' build.log | sed 's/Touch //') + - name: Start Appium server + run: nohup appium server + - name: Run End-to-End tests + working-directory: ${{ matrix.scheme }} + run: APP_PATH=$path yarn test + # - name: Display path + # run: 'echo "Extracted Path from Environment Variable: $APP_PATH"' + # uses: sersoft-gmbh/xcodebuild-action@v3 + # with: + # workspace: ${{ matrix.scheme }}/ios/${{ matrix.scheme }}.xcworkspace + # scheme: ${{ matrix.scheme }}-tvOS + # destination: platform=TvOS Simulator,name=Apple TV + # action: clean build + # build-settings: CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO diff --git a/FabricTvOSExample/e2e/config.ts b/FabricTvOSExample/e2e/config.ts index 3fe6baf..3396505 100644 --- a/FabricTvOSExample/e2e/config.ts +++ b/FabricTvOSExample/e2e/config.ts @@ -5,7 +5,7 @@ const capabilities = { 'appium:automationName': 'XCUITest', 'appium:platformVersion': '17.0', 'appium:deviceName': 'Apple TV', - 'appium:app': '/tmp/FabricTvOSExample', + 'appium:app': process.env.APP_PATH, }; export const wdOpts: RemoteOptions = { diff --git a/TvOSExample/e2e/config.ts b/TvOSExample/e2e/config.ts index 3ba0881..3396505 100644 --- a/TvOSExample/e2e/config.ts +++ b/TvOSExample/e2e/config.ts @@ -5,7 +5,7 @@ const capabilities = { 'appium:automationName': 'XCUITest', 'appium:platformVersion': '17.0', 'appium:deviceName': 'Apple TV', - 'appium:app': '/tmp/TvOSExample', + 'appium:app': process.env.APP_PATH, }; export const wdOpts: RemoteOptions = {