-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
90 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
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/dev/session-android-20240815T053242Z-93a28906f-universal.tar.xz' | ||
sha_to_co: | ||
description: 'oxen-io/session-appium sha to checkout (can be in a PR)' | ||
required: true | ||
type: string | ||
default: '7a3363079ccc69b4cc7cf19974a487041a70ef7a' | ||
|
||
push: | ||
branches: | ||
- test-docker-container | ||
|
||
# ${{ 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/dev/session-android-20240815T053242Z-93a28906f-universal.tar.xz' | ||
sha_to_co: '7a3363079ccc69b4cc7cf19974a487041a70ef7a' | ||
|
||
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 | ||
# pwd | ||
|
||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
repository: 'oxen-io/session-appium' | ||
ref: '7a3363079ccc69b4cc7cf19974a487041a70ef7a' | ||
path: 'forked-session-appium' | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
# node-version-file: 'forked-session-appium/.nvmrc' | ||
node-version: 18.15.0 | ||
|
||
|
||
- name: Install yarn | ||
run: | | ||
npm install -g yarn | ||
corepack enable | ||
yarn set version 4.1.1 | ||
- name: Install test dependencies | ||
run: | | ||
touch yarn.lock | ||
cd forked-session-appium | ||
ls | ||
git status | ||
touch yarn.lock | ||
yarn install --immutable | ||
- name: Run the Android tests | ||
run: | | ||
yarn test | ||