Skip to content

Commit

Permalink
Reinstate e2e runner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell committed Aug 7, 2023
1 parent 834b05b commit b316aa7
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
# temp disable the E2E tests until runner is working again
name: E2e Test
on:
push:
branches:
- master
pull_request:
merge_group:
jobs:
test:
runs-on: self-hosted
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
timeout-minutes: 30
strategy:
matrix:
api-level: [30]
target: [default]
steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
architecture: x64

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm install ganache --global

- name: Run tests
run: |
rm -rf ./output
mkdir ./output
adb shell settings put secure long_press_timeout 1500
ganache --chain.chainId 2 -h 0.0.0.0 -p 8545 -m "horse light surface bamboo combine item lumber tunnel choose acid mail feature" &
adb logcat >> output/emulator.log &
./gradlew :app:uninstallAll :app:connectedNoAnalyticsDebugAndroidTest -x lint -PdisablePreDex
kill %1
kill %2
- name: Collect tests results
if: ${{ failure() }}
uses: actions/upload-artifact@v1
with:
name: e2e-tests-results
path: output/

0 comments on commit b316aa7

Please sign in to comment.