Skip to content

fix: test gh runner #104

fix: test gh runner

fix: test gh runner #104

name: Run android regression tests
on:
workflow_dispatch:
inputs:
apk_url:
description: 'APK.tar.gz url to test'
required: true
type: string
default: 'https://oxen.rocks/oxen-io/session-android/release/1.19.0/session-android-20240807T060802Z-9cc760ce4-universal.tar.xz'
sha_to_co:
description: 'oxen-io/session-appium sha to checkout (can be in a PR)'
required: true
type: string
default: 'august'
push:
branches:
- test-docker-container
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
# ${{ inputs.apk_url }}
# ${{ inputs.sha_to_co }}
jobs:
android-regression:
runs-on: [self-hosted, linux, x64, qa-android]
env:
apk_url: 'https://oxen.rocks/oxen-io/session-android/release/1.19.0/session-android-20240807T060802Z-9cc760ce4-universal.tar.xz'
sha_to_co: 'august'
ANDROID_APP_PATH_PREFIX: "../extracted/session-android.apk"
APPIUM_ADB_FULL_PATH: "/opt/android/platform-tools/adb"
ANDROID_SDK_ROOT: "/opt/android"
IOS_APP_PATH_PREFIX: "just_not_empty"
IOS_FIRST_SIMULATOR: "just_not_empty"
IOS_SECOND_SIMULATOR: "just_not_empty"
IOS_THIRD_SIMULATOR: "just_not_empty"
IOS_FOURTH_SIMULATOR: "just_not_empty"
IOS_FIFTH_SIMULATOR: "just_not_empty"
IOS_SIXTH_SIMULATOR: "just_not_empty"
IOS_SEVENTH_SIMULATOR: "just_not_empty"
IOS_EIGHTH_SIMULATOR: "just_not_empty"
steps:
- uses: actions/checkout@v4
- name: Runner Details
run: |
echo "sha_to_co $sha_to_co"
echo "apk_url $apk_url"
- name: Download APK
run: |
wget -q -O plop.apk.tar.xz $apk_url
ls
pwd
- name: Extract APK
run: |
tar xf plop.apk.tar.xz
ls
pwd
- name: Rename extracted folder
run: |
mv session-android-*universal extracted
ls extracted
mv extracted/*.apk extracted/session-android.apk
ls extracted
pwd
- uses: actions/checkout@v4
with:
repository: 'bilb/session-appium'
ref: 'august'
path: 'forked-session-appium'
- uses: actions/setup-node@v4
with:
# node-version-file: 'forked-session-appium/.nvmrc'
node-version: 18.15.0
cache: 'yarn'
- name: Install yarn
run: |
npm install -g yarn
corepack enable
yarn set version 4.1.1
- name: Install test dependencies
run: |
cd forked-session-appium
ls
git status
touch yarn.lock
yarn install --immutable
- name: Build the Android tests
run: |
cd forked-session-appium
yarn tsc
- name: Run the Android tests
run: |
cd forked-session-appium
pwd
yarn test "android"