-
Notifications
You must be signed in to change notification settings - Fork 62
77 lines (69 loc) · 3.53 KB
/
BrowserStack_Web_Android_MultiUser_CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: BrowserStack_Web_Android_MultiUser_CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
BrowserStack_Web_Android_MultiUser_CI:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Install Appium 2.0 and dependencies
run: |
node -v
npm cache clean --force
npm install
npm list
- name: Run Web tests against Browserstack
run: |
RUN_IN_CI=true TESWIZ_APPLITOOLS_API_KEY=${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} IS_VISUAL=true CONFIG=./configs/theapp/theapp_browserstack_web_config.properties CLOUD_USERNAME=${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} CLOUD_KEY=${{ secrets.BROWSERSTACK_CLOUD_KEY }} PLATFORM=web TAG="@theapp and @invalidLogin1 and @browserstack" ./gradlew run
continue-on-error: true
- name: Save Test Artifacts
if: ${{ always() }} # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-results-theapp-web
path: target
continue-on-error: true
- name: Run TheApp Android tests against Browserstack
run: |
echo "Run theApp Tests"
RUN_IN_CI=true TESWIZ_APPLITOOLS_API_KEY=${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} IS_VISUAL=true CONFIG=./configs/theapp/theapp_browserstack_config.properties CLOUD_USERNAME=${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} CLOUD_KEY=${{ secrets.BROWSERSTACK_CLOUD_KEY }} PLATFORM=android TAG="@theapp and @invalidLogin1 and @browserstack" ./gradlew run
continue-on-error: true
- name: Save Test Artifacts
if: ${{ always() }} # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-results-theapp-android
path: target
continue-on-error: true
- name: Run New Calculator Android tests against Browserstack
run: |
echo "Run New Calculator Tests"
RUN_IN_CI=true TESWIZ_APPLITOOLS_API_KEY=${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} IS_VISUAL=true CONFIG=./configs/calculator/new_calculator_browserstack_config.properties CLOUD_USERNAME=${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} CLOUD_KEY=${{ secrets.BROWSERSTACK_CLOUD_KEY }} PLATFORM=android TAG="@new_calculator and @browserstack" ./gradlew run
continue-on-error: true
- name: Save Test Artifacts
if: ${{ always() }} # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-results-calculator-android
path: target
continue-on-error: true
- name: Run Multi-user Android & Web tests against Browserstack
run: |
RUN_IN_CI=true TESWIZ_APPLITOOLS_API_KEY=${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} IS_VISUAL=true CONFIG=./configs/theapp/theapp_browserstack_config.properties CLOUD_USERNAME=${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} CLOUD_KEY=${{ secrets.BROWSERSTACK_CLOUD_KEY }} PLATFORM=android TAG="@multiuser-android-web and @theapp and @browserstack" ./gradlew run
continue-on-error: true
- name: Save Test Artifacts
if: ${{ always() }} # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-results-multi-user
path: target
continue-on-error: true