11name : E2E Tests
22
33on :
4- workflow_dispatch :
5- inputs :
4+ workflow_dispatch :
5+ inputs :
66 branch :
77 description : ' The branch to run the workflow on'
88 required : true
@@ -17,12 +17,12 @@ jobs:
1717 strategy :
1818 fail-fast : false
1919 matrix :
20- api-level : [31 ]
21- profile : [pixel_7_pro]
20+ api-level : [ 31 ]
21+ profile : [ pixel_7_pro ]
2222 steps :
2323 - name : Checkout
2424 uses : actions/checkout@v4
25-
25+
2626 - name : Slack Post
2727 uses : devtk0582/slack-post-action@v1.2
2828 with :
@@ -38,14 +38,15 @@ jobs:
3838 - name : Build project (Stagenet)
3939 run : chmod +x ./gradlew && ./gradlew app:assembleStagenetDebug --stacktrace
4040
41- # Log APK Path and store it as an environment variable
41+ # Log APK Path and store it as an environment variable
4242 - name : Log APK Path
4343 id : log_apk
4444 run : |
45- echo "Listing APK files..."
46- APK_PATH=$(find app/build/outputs/apk -type f -name "*.apk")
47- echo "APK_PATH=$APK_PATH"
48- echo "APK_PATH=$APK_PATH" >> $GITHUB_ENV
45+ echo "Listing APK files..."
46+ APK_PATH=$(find app/build/outputs/apk -type f -name "*.apk")
47+ echo "APK_PATH=$APK_PATH"
48+ echo "APK_PATH=$APK_PATH" >> $GITHUB_ENV
49+
4950 - name : Slack Post
5051 uses : devtk0582/slack-post-action@v1.2
5152 with :
5758 echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
5859 sudo udevadm control --reload-rules
5960 sudo udevadm trigger --name-match=kvm
60- - name : Gradle cache
61- uses : gradle/actions/setup-gradle@v3
6261
6362 - name : AVD cache
6463 uses : actions/cache@v4
9190 run : |
9291 appium --log-level debug & # Start Appium in the background
9392 sleep 10 # Wait for Appium to initialize
94-
95- - name : run tests
93+
94+ - name : Run tests
9695 uses : reactivecircus/android-emulator-runner@v2
9796 with :
9897 api-level : ${{ matrix.api-level }}
0 commit comments