Skip to content

Commit 372d6b2

Browse files
author
Stephen Barrett
committed
Import of source (develop)
Source: https://github.com/rdk-e/entservices-inputoutput SHA1: 1.0.5
0 parents  commit 372d6b2

File tree

164 files changed

+26764
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+26764
-0
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
# @global-owner1 and @global-owner2 will be requested for
4+
# review when someone opens a pull request.
5+
* @rdkcentral/rdke_ghec_entinputoutput_maintainer
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Fossid Stateless Diff Scan
2+
3+
on: pull_request
4+
5+
jobs:
6+
call-fossid-workflow:
7+
uses: rdkcentral/build_tools_workflows/.github/workflows/fossid_integration_stateless_diffscan.yml@develop
8+
secrets:
9+
FOSSID_CONTAINER_USERNAME: ${{ secrets.FOSSID_CONTAINER_USERNAME }}
10+
FOSSID_CONTAINER_PASSWORD: ${{ secrets.FOSSID_CONTAINER_PASSWORD }}
11+
FOSSID_HOST_USERNAME: ${{ secrets.FOSSID_HOST_USERNAME }}
12+
FOSSID_HOST_TOKEN: ${{ secrets.FOSSID_HOST_TOKEN }}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: json-validator
2+
3+
on:
4+
push:
5+
branches: [ main, 'sprint/**', 'release/**' ]
6+
pull_request:
7+
branches: [ main, 'sprint/**', 'release/**' ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
name: Validate json files
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Get modified/added json files
17+
id: json-files
18+
uses: tj-actions/changed-files@v19
19+
with:
20+
files: |
21+
**/*.json
22+
23+
- name: Validate the json files
24+
id: validate-json-files
25+
run : |
26+
failed_jsons=()
27+
FAILED=false
28+
for file in ${{ steps.json-files.outputs.all_changed_files }}; do
29+
echo "Validating the json file $file"
30+
if ! python -m json.tool $file
31+
then
32+
FAILED=true
33+
echo "Json schema error in $file"
34+
failed_jsons+=("$file")
35+
continue
36+
fi
37+
done
38+
if [ $FAILED == true ]
39+
then
40+
echo "Error in parsing the JSON"
41+
echo "Failed jsons are ${failed_jsons[@]}"
42+
exit 1
43+
fi
44+
45+
46+
47+
48+

.github/workflows/manual-ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This is a basic workflow that is manually triggered
2+
3+
name: Manual workflow
4+
5+
# Controls when the action will run. Workflow runs when manually triggered using the UI
6+
# or API.
7+
on:
8+
workflow_dispatch:
9+
# Inputs the workflow accepts.
10+
inputs:
11+
name:
12+
# Friendly description to be shown in the UI instead of 'name'
13+
description: 'Type of test : [Sanity, Quick, L1, L2]'
14+
# Default value if no value is explicitly provided
15+
default: 'Sanity'
16+
# Input has to be provided for the workflow to run
17+
required: true
18+
# The data type of the input
19+
type: string
20+
21+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
22+
jobs:
23+
# This workflow contains a single job called "greet"
24+
greet:
25+
# The type of runner that the job will run on
26+
runs-on: ubuntu-latest
27+
28+
# Steps represent a sequence of tasks that will be executed as part of the job
29+
steps:
30+
# Runs a single command using the runners shell
31+
- name: Run CI tests
32+
run: echo "Executing ${{ inputs.name }}"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: update changelog and api version
2+
3+
on:
4+
push:
5+
branches: [ main, 'release/**' ]
6+
paths-ignore: ['docs/**', 'Tests/**', 'Tools/**', '.github/**']
7+
8+
pull_request:
9+
branches: [ main, 'release/**' ]
10+
paths-ignore: ['docs/**', 'Tests/**', 'Tools/**', '.github/**']
11+
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest # windows-latest | macos-latest
16+
name: Check if changelog and api version were updated
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
21+
22+
- name: Get changed files using defaults
23+
id: changed-files
24+
uses: tj-actions/changed-files@v19
25+
26+
- name: Run step when a CHANGELOG.md didn't change
27+
uses: actions/github-script@v3
28+
if: ${{ !contains(steps.changed-files.outputs.all_changed_files, 'CHANGELOG.md') }}
29+
with:
30+
script: |
31+
core.setFailed('CHANGELOG.md should be modified')

AVInput/AVInput.conf.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
precondition = ["Platform"]
2+
callsign = "org.rdk.AVInput"
3+
autostart = "false"
4+
startuporder = "@PLUGIN_AVINPUT_STARTUPORDER@"

AVInput/AVInput.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set (autostart false)
2+
set (preconditions Platform)
3+
set (callsign org.rdk.AVInput)
4+
5+
if(PLUGIN_AVINPUT_STARTUPORDER)
6+
set (startuporder ${PLUGIN_AVINPUT_STARTUPORDER})
7+
endif()

0 commit comments

Comments
 (0)