Skip to content

Commit

Permalink
sketch out gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Jul 27, 2024
1 parent f26f798 commit 50d7cde
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: E2E test

on:
workflow_dispatch:
push:


jobs:
build:
runs-on: macos-latest
if: github.repository == 'mobile-dev-inc/maestro'

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build xctest-runner
run: ./maestro-ios-xctest-runner/build-maestro-ios-runner.sh

- name: Build Maestro CLI
run: ./gradlew :maestro-cli

- uses: actions/upload-artifact@v4
with:
name: maestro-${{ github.run_id }}
path: maestro-cli/build/install/maestro
retention-days: 1

test:
runs-on: ubuntu-latest
if: github.repository == 'mobile-dev-inc/maestro'
needs: build

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 8

- uses: actions/download-artifact@v4
with:
# Name of the artifact to download.
# If unspecified, all artifacts for the run are downloaded.
# Optional.
name: maestro-${{ github.run_id }}

- name: Run Maestro CLI
run: ./maestro --help

0 comments on commit 50d7cde

Please sign in to comment.