diff --git a/.drone.jsonnet b/.drone.jsonnet deleted file mode 100644 index 79e9bc8d..00000000 --- a/.drone.jsonnet +++ /dev/null @@ -1,32 +0,0 @@ - -[ - // Unit tests (PRs only) - { - kind: 'pipeline', - type: 'docker', - name: 'Session Android Integration tests', - platform: { os: 'linux', arch: 'amd64' }, - steps: [ - { - name: 'appium android tests', - image: "registry.oxen.rocks/appium-34-pixel6", - environment: { - 'APK_URL': 'https://oxen.rocks/AL-Session/session-android/dev/session-android-20240402T225341Z-d3c863574-universal.tar.xz', - 'APK_TO_TEST_PATH':'/session.apk', - 'NODE_CONFIG_ENV': 'ci', - }, - commands: [ - 'cp -r docker/etc/* /etc', - '/usr/bin/supervisord -c /etc/supervisord_test.conf', - 'chmod +x ./docker/*.sh', - './docker/start_emulators.sh', - './docker/dl.sh', - 'yarn install --immutable && yarn tsc && yarn test-no-retry ""' - - ], - - }, - ], -}, -] - diff --git a/.github/workflows/android-regression.yml b/.github/workflows/android-regression.yml new file mode 100644 index 00000000..4392867c --- /dev/null +++ b/.github/workflows/android-regression.yml @@ -0,0 +1,66 @@ +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: '3c2ced8' + + 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: '3c2ced8' + + 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 + mv session-android-*universal extracted + + + - name: Rename APK + run: | + mv session-android-*universal extracted + ls extracted + pwd + + + - uses: actions/checkout@v4 + with: + # Repository name with owner. For example, actions/checkout + # Default: ${{ github.repository }} + repository: 'oxen-io/session-appium' + + # The branch, tag or SHA to checkout. When checking out the repository that + # triggered a workflow, this defaults to the reference or SHA for that event. + # Otherwise, uses the default branch. + ref: '$sha_to_co' + +