Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds e2e testing on GitHub action for Android #1126

Merged
merged 52 commits into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
694bb99
chore: Adds detox and upgrades jest
Sep 1, 2021
74f465b
chore: Adds detox configuration and simple test
Sep 1, 2021
1dd8e64
chore: Remove search bar and update webview
Sep 2, 2021
aad8d8b
chore: Move ReactNativeFlipper to debug
Sep 2, 2021
2cccf49
chore: Change android confugration to work with detox
Sep 3, 2021
9fe8753
chore: Add comment about exclusion
Sep 3, 2021
92f1bcb
chore: Adds iOS release build
Sep 3, 2021
5bb80ff
chore: Adds main screen tests
Sep 3, 2021
9b7487b
chore: Adds simple native stack tests
Sep 6, 2021
5dc7b5a
chore: Adds Podfile update
Sep 6, 2021
72f0ef4
chore: Adds exmaples tests folder
Sep 6, 2021
c93b4c6
chore: Adds testIds to stack presentation and form
Sep 6, 2021
8ef26fb
chore: Fix screens import in example app
Sep 6, 2021
e991bb5
chore: Adds stack presentation tests for push and modal
Sep 6, 2021
41f5ff2
Merge branch 'master' into @ubax/add-e2e-tests
Sep 6, 2021
5987e96
chore: Add command to run and build e2e
Sep 6, 2021
c120a87
chore: Adds ios e2e github action
Sep 6, 2021
bb54489
chore: Change action name
Sep 6, 2021
f91c9bc
chore: Adds xcode version check
Sep 7, 2021
24fce72
chore: Changes xcode version to 11.7
Sep 8, 2021
d308ffe
chore: Adds acitve arch to ios build
Sep 8, 2021
6dc4fff
chore: Fixes ios detox build
Sep 8, 2021
055795f
chore: Changes build system to new
Sep 8, 2021
a806f3b
chore: Adds xcpretty
Sep 8, 2021
dbaf540
chore: Adds apple simulator utils install
Sep 8, 2021
aed278f
chore: Add rebuild detox
Sep 13, 2021
ad89e51
Revert "chore: Add rebuild detox"
Sep 13, 2021
facc2bc
chore: Adds list devices
Sep 13, 2021
f4db030
chore: Remove dev dir
Sep 13, 2021
0cd2a72
chore: Remove unsed code and change name
Sep 13, 2021
0eb59df
chore: Remove dev commands
Sep 13, 2021
8d08fcc
chore: Removes unused command
Sep 13, 2021
33f0c48
chore: Adds timeout to ios e2e
Sep 13, 2021
f1be604
chore: Adds action for android e2e
Sep 13, 2021
b3fcb62
chore: Runs e2e for every PR
Sep 13, 2021
bfe0ae3
chore: Changes name of action
Sep 13, 2021
14f1fd6
chore: Changes name of android emulator
Sep 13, 2021
3be4286
Merge branch 'master' into @ubax/add-e2e-github-action-android
Sep 14, 2021
bdfef41
chore: Change group name to e2e
Sep 14, 2021
b82f101
chore: Updates android emulator run command
Sep 15, 2021
11ec355
chore: Change emulator arguments
Sep 16, 2021
bdd8848
chore: Take screenshot of failing actions
Sep 16, 2021
abbbae9
chore: Adds taking screenshot and omit error
Sep 17, 2021
941f256
chore: Changes path to adb
Sep 17, 2021
28b38a6
chore: Adds mkdir
Sep 17, 2021
f89477a
chore: Removes app testing
Sep 17, 2021
eb6b95e
chore: Adds predefined action for emulator
Sep 17, 2021
ccc0e05
chore: Removes screenshot takeing
Sep 17, 2021
8da4d49
chore: Adds test for fail
Sep 17, 2021
f621856
chore: Adds if to artifacts
Sep 20, 2021
a9bdebb
chore: Adds filter for example change
Sep 20, 2021
b540a77
chore: Remove screenshots for ios
Sep 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/android-e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test Android e2e
on:
pull_request:
paths:
- 'Example/**'
push:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: macos-latest
timeout-minutes: 40
env:
WORKING_DIRECTORY: Example
concurrency:
group: android-e2e-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'yarn'
- name: Install root node dependencies
run: yarn
- name: Install node dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn
- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn build-e2e-android
- name: Run emulator and tests
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: ${{ env.WORKING_DIRECTORY }}
api-level: 29
avd-name: e2e_emulator
script: yarn test-e2e-android
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: android-fail-screen-shoots
path: ${{ env.WORKING_DIRECTORY }}/artifacts
2 changes: 1 addition & 1 deletion Example/.detoxrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_3a_API_30_x86"
"avdName": "e2e_emulator"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build-e2e-ios": "detox build --configuration ios.release",
"build-e2e-android": "detox build --configuration android.release",
"test-e2e-ios": "detox test --configuration ios.release",
"test-e2e-android": "detox test --configuration android.release"
"test-e2e-android": "detox test --configuration android.release --take-screenshots failing"
},
"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
Expand Down