Skip to content

Commit 008fa89

Browse files
[RDKEMW-3513] PR action to run with latest change (#163)
* [RDKEMW-3513] PR action to run with latest change * Modifying L1,L2 .yml * Modifying artifacts job name * resolving review comments * modifying testframework branch name to develop * pointing to develop * Update tests-trigger.yml --------- Co-authored-by: Prathyushakothuru <[email protected]> Co-authored-by: kprathyusha <[email protected]>
1 parent deffc51 commit 008fa89

File tree

3 files changed

+44
-11
lines changed

3 files changed

+44
-11
lines changed

.github/workflows/L1-tests.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: L1-tests
22

33
on:
4-
push:
5-
branches: [ main, develop, 'sprint/**', 'release/**' ]
6-
pull_request:
7-
branches: [ main, develop, 'sprint/**', 'release/**' ]
4+
workflow_call:
5+
secrets:
6+
RDKCM_RDKE:
7+
required: true
88

99
env:
1010
BUILD_TYPE: Debug
@@ -66,6 +66,10 @@ jobs:
6666
python-version: '3.x'
6767
- run: pip install jsonref
6868

69+
- name: ACK External Trigger
70+
run: |
71+
echo "Message: External Trigger Received for L1 Tests"
72+
6973
- name: Set up CMake
7074
uses: jwlawson/[email protected]
7175
with:
@@ -119,7 +123,9 @@ jobs:
119123
- name: Checkout entservices-inputoutput
120124
uses: actions/checkout@v3
121125
with:
126+
repository: rdkcentral/entservices-inputoutput
122127
path: entservices-inputoutput
128+
ref: develop
123129

124130
- name: Checkout googletest
125131
if: steps.cache.outputs.cache-hit != 'true'
@@ -667,7 +673,7 @@ jobs:
667673
if: ${{ !env.ACT }}
668674
uses: actions/upload-artifact@v4
669675
with:
670-
name: artifacts
676+
name: artifacts-L1-inputoutput
671677
path: |
672678
coverage/
673679
valgrind_log

.github/workflows/L2-tests.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: L2-tests
22

33
on:
4-
push:
5-
branches: [ main, develop, 'sprint/**', 'release/**' ]
6-
pull_request:
7-
branches: [ main, develop, 'sprint/**', 'release/**' ]
4+
workflow_call:
5+
secrets:
6+
RDKCM_RDKE:
7+
required: true
88

99
env:
1010
BUILD_TYPE: Debug
@@ -36,6 +36,10 @@ jobs:
3636
python-version: '3.x'
3737
- run: pip install jsonref
3838

39+
- name: ACK External Trigger
40+
run: |
41+
echo "Message: External Trigger Received for L2 Tests"
42+
3943
- name: Set up CMake
4044
uses: jwlawson/[email protected]
4145
with:
@@ -81,7 +85,9 @@ jobs:
8185
- name: Checkout entservices-inputoutput
8286
uses: actions/checkout@v3
8387
with:
88+
repository: rdkcentral/entservices-inputoutput
8489
path: entservices-inputoutput
90+
ref: develop
8591

8692
- name: Checkout entservices-testframework
8793
uses: actions/checkout@v3
@@ -375,7 +381,7 @@ jobs:
375381
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/rdk/iarmmgrs-hal
376382
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices
377383
-I $GITHUB_WORKSPACE/entservices-testframework/Tests/headers/systemservices/proc
378-
-I $GITHUB_WORKSPACE/entservices-deviceanddisplay/helpers
384+
-I $GITHUB_WORKSPACE/entservices-inputoutput/helpers
379385
-I $GITHUB_WORKSPACE/install/usr/include
380386
-I $GITHUB_WORKSPACE/install/usr/include/WPEFramework
381387
-include $GITHUB_WORKSPACE/entservices-testframework/Tests/mocks/devicesettings.h
@@ -581,7 +587,7 @@ jobs:
581587
if: ${{ !env.ACT }}
582588
uses: actions/upload-artifact@v4
583589
with:
584-
name: artifacts
590+
name: artifacts-L2-inputoutput
585591
path: |
586592
coverage/
587593
valgrind_log
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
permissions:
2+
contents: read
3+
name: main-workflow
4+
5+
on:
6+
push:
7+
branches: [ main, develop, 'sprint/**', 'release/**' ]
8+
pull_request:
9+
branches: [ main, develop, 'sprint/**', 'release/**' ]
10+
11+
jobs:
12+
trigger-L1:
13+
uses: ./.github/workflows/L1-tests.yml
14+
secrets:
15+
RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }}
16+
17+
trigger-L2:
18+
uses: ./.github/workflows/L2-tests.yml
19+
secrets:
20+
RDKCM_RDKE: ${{ secrets.RDKCM_RDKE }}
21+

0 commit comments

Comments
 (0)