Skip to content

Commit

Permalink
merge all PDF tests in the same workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbagmar committed Nov 27, 2024
1 parent 1288153 commit 8362b42
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: BrowserStack_PDF_Android_CI
name: BrowserStack_PDF_CI

on:
push:
Expand Down Expand Up @@ -39,5 +39,23 @@ jobs:
if: ${{ always() }} # Ensure this step runs even if the tests fail
uses: actions/upload-artifact@v4
with:
name: test-results
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
- 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
- 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
- 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
10 changes: 5 additions & 5 deletions .github/workflows/BrowserStack_PDF_Web_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

name: BrowserStack_PDF_Web_CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
#on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]

jobs:
build:
Expand Down

0 comments on commit 8362b42

Please sign in to comment.