diff --git a/.github/workflows/L1-tests.yml b/.github/workflows/L1-tests.yml index 6121092a..f5dfb136 100755 --- a/.github/workflows/L1-tests.yml +++ b/.github/workflows/L1-tests.yml @@ -1,10 +1,10 @@ name: L1-tests on: - push: - branches: [ main, develop, 'sprint/**', 'release/**' ] - pull_request: - branches: [ main, develop, 'sprint/**', 'release/**' ] + workflow_call: + secrets: + RDKCM_RDKE: + required: true env: BUILD_TYPE: Debug @@ -66,6 +66,10 @@ jobs: python-version: '3.x' - run: pip install jsonref + - name: ACK External Trigger + run: | + echo "Message: External Trigger Received for L1 Tests" + - name: Set up CMake uses: jwlawson/actions-setup-cmake@v1.13 with: @@ -119,7 +123,9 @@ jobs: - name: Checkout entservices-inputoutput uses: actions/checkout@v3 with: + repository: rdkcentral/entservices-inputoutput path: entservices-inputoutput + ref: develop - name: Checkout googletest if: steps.cache.outputs.cache-hit != 'true' @@ -667,7 +673,7 @@ jobs: if: ${{ !env.ACT }} uses: actions/upload-artifact@v4 with: - name: artifacts + name: artifacts-L1-inputoutput path: | coverage/ valgrind_log diff --git a/.github/workflows/L2-tests.yml b/.github/workflows/L2-tests.yml index c8a13eb5..9dc033be 100755 --- a/.github/workflows/L2-tests.yml +++ b/.github/workflows/L2-tests.yml @@ -1,10 +1,10 @@ name: L2-tests on: - push: - branches: [ main, develop, 'sprint/**', 'release/**' ] - pull_request: - branches: [ main, develop, 'sprint/**', 'release/**' ] + workflow_call: + secrets: + RDKCM_RDKE: + required: true env: BUILD_TYPE: Debug @@ -36,6 +36,10 @@ jobs: python-version: '3.x' - run: pip install jsonref + - name: ACK External Trigger + run: | + echo "Message: External Trigger Received for L2 Tests" + - name: Set up CMake uses: jwlawson/actions-setup-cmake@v1.13 with: @@ -81,7 +85,9 @@ jobs: - name: Checkout entservices-inputoutput uses: actions/checkout@v3 with: + repository: rdkcentral/entservices-inputoutput path: entservices-inputoutput + ref: develop - name: Checkout entservices-testframework uses: actions/checkout@v3 @@ -375,7 +381,7 @@ jobs: -I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmmgrs-hal -I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices -I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc - -I $GITHUB_WORKSPACE/entservices-deviceanddisplay/helpers + -I $GITHUB_WORKSPACE/entservices-inputoutput/helpers -I $GITHUB_WORKSPACE/install/usr/include -I $GITHUB_WORKSPACE/install/usr/include/WPEFramework -include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h @@ -581,7 +587,7 @@ jobs: if: ${{ !env.ACT }} uses: actions/upload-artifact@v4 with: - name: artifacts + name: artifacts-L2-inputoutput path: | coverage/ valgrind_log diff --git a/.github/workflows/tests-trigger.yml b/.github/workflows/tests-trigger.yml new file mode 100755 index 00000000..3aa84f0f --- /dev/null +++ b/.github/workflows/tests-trigger.yml @@ -0,0 +1,21 @@ +permissions: + contents: read +name: main-workflow + +on: + push: + branches: [ main, develop, 'sprint/**', 'release/**' ] + pull_request: + branches: [ main, develop, 'sprint/**', 'release/**' ] + +jobs: + trigger-L1: + uses: ./.github/workflows/L1-tests.yml + secrets: + RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }} + + trigger-L2: + uses: ./.github/workflows/L2-tests.yml + secrets: + RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }} +