Skip to content

Commit

Permalink
Use env variable to pass app path
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyod committed Nov 27, 2023
1 parent 11504c9 commit e5b1d6d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion FabricTvOSExample/e2e/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion TvOSExample/e2e/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit e5b1d6d

Please sign in to comment.