-
Notifications
You must be signed in to change notification settings - Fork 62
62 lines (55 loc) · 2.4 KB
/
BrowserStack_PDF_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
name: BrowserStack_PDF_CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
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 PDF-Android tests against Browserstack
run: |
RUN_IN_CI=true TESWIZ_APPLITOOLS_API_KEY=${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} IS_VISUAL=true CONFIG=./configs/pdf/pdf_android_browserstack_config.properties CLOUD_USERNAME=${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} CLOUD_KEY=${{ secrets.BROWSERSTACK_CLOUD_KEY }} PLATFORM=android TAG="@validatePDF 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-PDF-Android
path: target
- name: Run PDF-Web tests against Browserstack
run: |
RUN_IN_CI=true TESWIZ_APPLITOOLS_API_KEY=${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} IS_VISUAL=true CONFIG=./configs/pdf/pdf_web_browserstack_config.properties CLOUD_USERNAME=${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} CLOUD_KEY=${{ secrets.BROWSERSTACK_CLOUD_KEY }} PLATFORM=web TAG="@validatePDF 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-PDF-Web
path: target
continue-on-error: true
- name: Run standalone PDF tests
run: |
RUN_IN_CI=true TESWIZ_APPLITOOLS_API_KEY=${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} CONFIG=./configs/pdf/local_pdf_config.properties PLATFORM=pdf TAG=@standalone ./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-standalone
path: target
continue-on-error: true