Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/actions/setup-maestro/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Set up Maestro
description: Install Java 21 and the Maestro CLI

inputs:
version:
description: '"stable" for the latest release, "main" for a HEAD build, or a specific version e.g. "1.38.1"'
default: stable

runs:
using: composite
steps:
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21
cache: ${{ inputs.version == 'main' && 'gradle' || '' }}

- name: Get Maestro HEAD SHA
id: maestro-sha
if: inputs.version == 'main'
shell: bash
run: |
set -euo pipefail
SHA=$(git ls-remote https://github.com/mobile-dev-inc/maestro.git refs/heads/main | cut -f1)
[ -n "$SHA" ] || { echo "Failed to resolve Maestro HEAD SHA"; exit 1; }
echo "sha=$SHA" >> $GITHUB_OUTPUT

- name: Cache Maestro (main)
id: cache
if: inputs.version == 'main'
uses: actions/cache@v5
with:
path: ~/.maestro
key: maestro-main-${{ steps.maestro-sha.outputs.sha }}

- name: Install Maestro CLI (main)
if: inputs.version == 'main' && steps.cache.outputs.cache-hit != 'true'
shell: bash
run: |
git clone --depth 1 --branch main https://github.com/mobile-dev-inc/maestro.git "$RUNNER_TEMP/maestro-src"
cd "$RUNNER_TEMP/maestro-src"
./gradlew :maestro-cli:installDist
mkdir -p ~/.maestro
cp -r maestro-cli/build/install/maestro/. ~/.maestro/

- name: Install Maestro CLI
if: inputs.version != 'main'
shell: bash
run: |
[ "${{ inputs.version }}" != "stable" ] && export MAESTRO_VERSION="${{ inputs.version }}"
curl -fsSL "https://get.maestro.mobile.dev" | bash

- name: Add Maestro to PATH
shell: bash
run: echo "$HOME/.maestro/bin" >> $GITHUB_PATH
19 changes: 0 additions & 19 deletions .github/workflows/debug.yaml

This file was deleted.

Loading
Loading