Skip to content

UITest

UITest #2

Workflow file for this run

name: UITest
on:
workflow_dispatch:
inputs:
device:
required: true
default: 'Pixel8_API33'
type: choice
options:
- 'Pixel8_API33'
- 'Pixel8_API35'
runner:
required: true
default: 'autotestdebug'
type: choice
options:
- 'autotestdebug'
- 'ubuntu-latest'
defaults:
env:

Check failure on line 22 in .github/workflows/uitests.yaml

View workflow run for this annotation

GitHub Actions / UITest

Invalid workflow file

The workflow is not valid. .github/workflows/uitests.yaml (Line: 22, Col: 3): Unexpected value 'env' .github/workflows/uitests.yaml (Line: 28, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.RUNNER
RUNNER: ${{ github.event.inputs.runner || 'autotestdebug' }}
jobs:
build:
name: build android application for ui tests
runs-on: ${{ env.RUNNER }}
timeout-minutes: 30
steps:
- name: checkout source code of application
uses: actions/checkout@v4
with:
clean: true
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
# settings-path: ${{ github.workspace }} # location for the settings.xml file
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
- name: Build with Gradle
run: ./gradlew :banner:assembleDebug
- name: save debug build for aws
uses: actions/upload-artifact@v4
with:
name: banner-debug.apk
path: banner/build/outputs/apk/debug/banner-debug.apk
retention-days: 14
# tests:
# name: run ui tests on aws with appium
# needs: build
# runs-on: ${{ env.RUNNER }}
# timeout-minutes: 30
# steps:
# - name: checkout source code of application
# uses: actions/checkout@v4
# with:
# clean: true
# repository: 'appodeal/SDK-Auto-Test'
# token: ${{ secrets.UITESTREPOACCESS }}
#
# - name: Set up JDK 11
# uses: actions/setup-java@v4
# with:
# java-version: '11'
# distribution: 'temurin'