Github Action

GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.

Adding our Action to your repo will automatically build and upload the APK for the Android app & the IPA for the iOS app to TestApp.io app distribution and notify all testers to test it and share feedback.

TestApp.io Github Action for Linux and macOS

Workflow to upload apk and ipa to TestApp.io app distribution

This action uploads artifacts (.apk or .ipa) to TestApp.io and notifying your team members about it.

Inputs

api_token: can be claimed from https://portal.testapp.io/settings/api-credentials

app_id: can be found from your app page menu

file: artifact to upload (.apk or .ipa)

notify: yes or no - to notify your team members in TestApp.io via push notification

Requirements

This action will execute on runners with a Ubuntu & macOS operating systems.

Sample usage for Android

name: Android adhoc
on:
  push:
    branches:
      - code-sign

jobs:
  export_android:

    runs-on: ubuntu-latest

    steps:

    - name: Checkout repository
    - uses: actions/[email protected]

    - name: Set up JDK 1.8
      uses: actions/[email protected]
      with:
        java-version: 1.8

    - name: Build release
      run: ./gradlew assembleRelease


    - name: Upload artifact to TestApp.io
      uses: testappio/[email protected]
      with:
        api_token: ${{secrets.TESTAPPIO_API_TOKEN}}
        app_id: ${{secrets.TESTAPPIO_APP_ID}}
        file: app/build/outputs/apk/release/app-release-unsigned.apk
        notify: "yes"

Sample usage for iOS

name: iOS adhoc
on:
  push:
    branches:
      - code-sign

jobs:
  export_ios_with_signing:
    runs-on: macos-latest

    steps:
      - name: Checkout repository
        uses: actions/[email protected]

      - name: Build and export iOS
        uses: yukiarrr/[email protected]
        with:
          project-path: ios/testappio.xcodeproj
          workspace-path: ios/testappio.xcworkspace
          scheme: testappio
          export-method: ad-hoc
          configuration: Release
          output-path: artifacts/output.ipa
          p12-base64: ${{ secrets.P12_BASE64 }}
          certificate-password: ${{ secrets.P12_PASSWORD }}
          mobileprovision-base64: ${{ secrets.ADHOC_MOBILEPROVISION_BASE64 }}
          code-signing-identity: ${{ secrets.CODE_SIGNING_IDENTITY }}
          team-id: ${{ secrets.TEAM_ID }}

      - name: Upload artifact to TestApp.io
        uses: testappio/[email protected]
        with:
          api_token: ${{ secrets.TESTAPPIO_API_TOKEN }}
          app_id: ${{ secrets.TESTAPPIO_APP_ID }}
          file: artifacts/output.ipa
          notify: "yes"

It's available in Github Actions Marketplace


Feedback & Support

Join our Slack channel for feedback and support

Happy releasing 🎉

Omar Masad

Omar Masad

Founder & CTO of TestApp.io