chore(deps): update dependency shell-quote to v1.9.0 [security] #914
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BrowserStack_PDF_CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| APPLITOOLS_BATCH_NAME_SUFFIX: " - #${{ github.run_number }}" | |
| jobs: | |
| BrowserStack_PDF_CI: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| 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 | |
| # id: pdf_android | |
| # uses: ./.github/actions/run-and-collect-tests | |
| # with: | |
| # id: pdf-android | |
| # display-name: "PDF Android" | |
| # config-path: "./configs/pdf/pdf_android_browserstack_config.properties" | |
| # platform: "android" | |
| # tag: "@validatePDF and @browserstack" | |
| # artifact-name: "test-results-PDF-Android" | |
| # is-visual: "true" | |
| # applitools_api_key: ${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} | |
| # browserstack_username: ${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} | |
| # browserstack_key: ${{ secrets.BROWSERSTACK_CLOUD_KEY }} | |
| - name: Run PDF-Web Tests | |
| id: pdf_web | |
| uses: ./.github/actions/run-and-collect-tests | |
| with: | |
| id: pdf-web | |
| display-name: "PDF Web" | |
| config-path: "./configs/pdf/pdf_web_browserstack_config.properties" | |
| platform: "web" | |
| tag: "@validatePDF and @browserstack" | |
| artifact-name: "test-results-PDF-Web" | |
| is-visual: "true" | |
| additional-env: "APPLITOOLS_BATCH_NAME_SUFFIX=' - #${{ github.run_number }}'" | |
| applitools_api_key: ${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} | |
| browserstack_username: ${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} | |
| browserstack_key: ${{ secrets.BROWSERSTACK_CLOUD_KEY }} | |
| - name: Run Standalone PDF Tests | |
| id: standalone | |
| uses: ./.github/actions/run-and-collect-tests | |
| with: | |
| id: standalone | |
| display-name: "Standalone PDF" | |
| config-path: "./configs/pdf/local_pdf_config.properties" | |
| platform: "pdf" | |
| tag: "@standalone" | |
| artifact-name: "test-results-Standalone" | |
| is-visual: "true" | |
| additional-env: "APPLITOOLS_BATCH_NAME_SUFFIX=' - #${{ github.run_number }}'" | |
| applitools_api_key: ${{ secrets.TESWIZ_APPLITOOLS_API_KEY }} | |
| browserstack_username: ${{ secrets.BROWSERSTACK_CLOUD_USERNAME }} | |
| browserstack_key: ${{ secrets.BROWSERSTACK_CLOUD_KEY }} | |
| - name: Check for Failures and Add Summary | |
| run: | | |
| echo "🔍 Checking exit codes for all PDF test runs..." | |
| fail=0 | |
| summary="### ❌ PDF CI Test Failures\n\n" | |
| PDF_ANDROID_CODE="${{ steps.pdf_android.outputs.exit_code }}" | |
| PDF_WEB_CODE="${{ steps.pdf_web.outputs.exit_code }}" | |
| STANDALONE_CODE="${{ steps.standalone.outputs.exit_code }}" | |
| if [[ "$PDF_ANDROID_CODE" != "0" && -n "$PDF_ANDROID_CODE" ]]; then | |
| summary+="- ❌ **PDF Android** failed (exit code: $PDF_ANDROID_CODE)\n" | |
| fail=1 | |
| fi | |
| if [[ "$PDF_WEB_CODE" != "0" && -n "$PDF_WEB_CODE" ]]; then | |
| summary+="- ❌ **PDF Web** failed (exit code: $PDF_WEB_CODE)\n" | |
| fail=1 | |
| fi | |
| if [[ "$STANDALONE_CODE" != "0" && -n "$STANDALONE_CODE" ]]; then | |
| summary+="- ❌ **Standalone PDF** failed (exit code: $STANDALONE_CODE)\n" | |
| fail=1 | |
| fi | |
| if [[ $fail -ne 0 ]]; then | |
| summary+="\n**Commit:** \`${{ github.sha }}\`\n" | |
| summary+="**Triggered by:** \`${{ github.actor }}\`\n" | |
| summary+="**Workflow:** [View Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})\n" | |
| echo -e "$summary" | |
| echo -e "$summary" >> "$GITHUB_STEP_SUMMARY" | |
| exit 1 | |
| else | |
| echo "✅ All PDF test suites passed" | |
| fi |