-
Notifications
You must be signed in to change notification settings - Fork 529
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
1 parent
834b05b
commit b316aa7
Showing
1 changed file
with
51 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -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/ |