Skip to content

Commit

Permalink
inline
Browse files Browse the repository at this point in the history
  • Loading branch information
henninghall committed Feb 12, 2024
1 parent fa4f2e8 commit 8515ea8
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,37 @@ jobs:
secrets: inherit

test-android-e2e:
name: Test
uses: ./.github/workflows/test-android-e2e.yml
name: Android - e2e
needs: [build-android]
secrets: inherit
runs-on: ubuntu-latest
environment: e2e Android

steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
id: cache-android
with:
path: ${{ env.APP_PATH }}
key: ${{ runner.os }}-${{ hashFiles('src/**', 'android/**', env.EXAMPLE_SRC, env.APP_PATH ) }}

- uses: mobile-dev-inc/action-maestro-cloud@v1.8.0
id: upload
with:
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }}
app-file: ${{ env.APP_PATH }}
include-tags: ${{ inputs.test-tags }}

# Step can be removed when this is fixed:
# https://github.com/mobile-dev-inc/action-maestro-cloud/issues/28
- name: Check for maestro errors
run: |
if [[ "$MAESTRO_CLOUD_FLOW_RESULTS" == *"ERROR"* || "$MAESTRO_CLOUD_FLOW_RESULTS" == *"CANCELED"* ]]; then
echo "One or more tests failed or were canceled."
exit 1
fi
env:
MAESTRO_CLOUD_FLOW_RESULTS: ${{ steps.upload.outputs.MAESTRO_CLOUD_FLOW_RESULTS }}

test-js:
name: Test
Expand Down

0 comments on commit 8515ea8

Please sign in to comment.