VPLAY-12203: - Subtitles Fails to display after Ad break point on VOD… #3210
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: L1 tests | |
| on: | |
| pull_request: | |
| branches: [ develop, dev_sprint_25_2 ] | |
| jobs: | |
| execute-unit-tests-on-pr: | |
| name: Runs all unit tests | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/rdkcentral/aamp-ci-image:latest | |
| steps: | |
| # Checkout the aamp repository | |
| - name: Checkout aamp code | |
| uses: actions/checkout@v3 | |
| # Run L1 tests | |
| - name: Run unit tests | |
| working-directory: ./test/utests | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| CXXFLAGS="-std=c++17" CFLAGS="-std=c17" ./run.sh 2>&1 | tee utest_run.log | |
| # Generate pretty test run output | |
| - name: Pretty test run output | |
| if: always() | |
| working-directory: ./test/utests | |
| run: | | |
| python3 parse_gtest_log.py utest_run.log | |
| # Needed to avoid git safe directory issues in GH Actions container | |
| - name: Mark workspace as safe for git | |
| run: | | |
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| # Publish AAMP test results | |
| - name: Publish AAMP L1 test results | |
| uses: dorny/test-reporter@v1 | |
| if: always() | |
| with: | |
| name: AAMP Unit Test Results | |
| path: test/utests/build/ctest-results.xml | |
| reporter: java-junit | |
| # Upload artifact (test/utests/build/ctest-results.xml) | |
| - name: Upload test result file (test/utests) | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ctest-results-test-utests-${{ github.run_id }} | |
| path: test/utests/build/ctest-results.xml | |
| # Show failure | |
| - name: Show failure details (if any) | |
| if: failure() | |
| run: tail -n 50 test/utests/build/ctest-results.xml || true | |
| # Run Middleware L1 unit tests | |
| - name: Run Middleware L1 unit tests | |
| working-directory: ./middleware/test/utests | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| CXXFLAGS="-std=c++17" CFLAGS="-std=c17" ./run.sh 2>&1 | tee utest_run.log | |
| # Publish Middleware test results | |
| - name: Publish Middleware L1 test results | |
| if: always() | |
| uses: dorny/test-reporter@v1 | |
| with: | |
| name: Middleware Unit Test Results | |
| path: middleware/test/utests/build/ctest-results.xml | |
| reporter: java-junit | |
| # Upload artifact (middleware/test/utests/build/ctest-results.xml) | |
| - name: Upload test result file (middleware/test/utests) | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: ctest-results-middleware-utests-${{ github.run_id }} | |
| path: middleware/test/utests/build/ctest-results.xml | |
| # Show middleware failure details (if any) | |
| - name: Show failure details (if any) | |
| if: failure() | |
| run: tail -n 50 middleware/test/utests/build/ctest-results.xml || true |