From a7cf9e42b48bee39238dbbc1cf3614839b04f2aa Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 3 Jul 2024 17:17:20 +1000 Subject: [PATCH] fix: test gh runner --- .drone.jsonnet | 32 ---------------------- .github/workflows/android-regression.yml | 35 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 32 deletions(-) delete mode 100644 .drone.jsonnet create mode 100644 .github/workflows/android-regression.yml 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..14871f88 --- /dev/null +++ b/.github/workflows/android-regression.yml @@ -0,0 +1,35 @@ +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/RyanRory/loki-messenger-ios/onboarding/session-ios-20240718T023657Z-fe312a0d6-sim.tar.xz' + pr_to_co: + description: 'oxen-io/session-appium PR to checkout' + required: true + type: string + default: '10' + push: + branches: + - test-docker-container + +jobs: + android-regression: + runs-on: [self-hosted, linux, x64, qa-android] + steps: + - uses: actions/checkout@v4 + - name: Runner Details + run: | + echo "pr_to_co ${{ inputs.pr_to_co }}" + echo "apk_url ${{ inputs.apk_url }}" + + - name: Download APK + run: | + wget -qO- ${{ inputs.apk_url }} | tar xvz + ls + pwd + +