Skip to content
Open

ul #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ name: build_ut

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: clang-format

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/client_component_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: client_component_tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commit_message_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: commit-message-format

# Controls when the workflow will run
on:
# Triggers the workflow on pull request to master branch
# Triggers the workflow on pull request to master and release/* branches
pull_request:
branches: ["master", "release/*"]

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: cppcheck

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down Expand Up @@ -59,19 +59,19 @@ jobs:
path: |
cppcheck_report.txt

# Get process_coverage_stats script output
# Get cppcheck script output
- id: get-comment-body
if: ${{ failure() && github.ref != 'refs/heads/master' }}
if: ${{ failure() && && github.event_name == 'pull_request' && github.base_ref == 'master' }}
run: |
body="$(cat cppcheck_report.txt)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::$body"

# Create comment with coverage info
# Create comment with cppcheck info
- name: Create Comment
if: ${{ failure() && github.ref != 'refs/heads/master' }}
if: ${{ failure() && github.event_name == 'pull_request' && github.base_ref == 'master' }}
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: cpplint

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/protobuf_breaking_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ jobs:
- name: Setup
uses: bufbuild/buf-setup-action@v1.31.0

- name: Breaking change detection against `master`
- name: Set target branch
id: set-branch
run: |
if [ -n "${{ github.base_ref }}" ]; then
echo "branch=${{ github.base_ref }}" >> "$GITHUB_OUTPUT"
else
echo "branch=master" >> "$GITHUB_OUTPUT"
fi

- name: Breaking change detection against base branch
uses: bufbuild/buf-breaking-action@v1
with:
input: proto
against: https://github.com/rdkcentral/rialto.git#branch=master,subdir=proto
against: "${{ github.server_url }}/${{ github.repository }}.git#branch=${{ steps.set-branch.outputs.branch }},subdir=proto"
6 changes: 2 additions & 4 deletions .github/workflows/rialto-gstreamer-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ name: Rialto GStreamer Test

on:
pull_request:
branches:
- "master"
- "rdkcentral:master"
branches: ["master", "release/*"]

workflow_dispatch:

Expand All @@ -34,7 +32,7 @@ jobs:
id: check-branch
shell: sh +e {0}
run: |
branch=master
branch="${{ github.base_ref }}"
git ls-remote --exit-code --heads "https://github.com/rdkcentral/rialto-gstreamer.git" ${{ github.event.pull_request.head.ref }} > /dev/null
if [ $? -eq 0 ]; then
branch="${{ github.event.pull_request.head.ref }}"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/rialto-ocdm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ name: Rialto OCDM Test

on:
pull_request:
branches:
- "master"
- "rdkcentral:master"
branches: ["master", "release/*"]

workflow_dispatch:

Expand All @@ -34,7 +32,7 @@ jobs:
id: check-branch
shell: sh +e {0}
run: |
branch=master
branch="${{ github.base_ref }}"
git ls-remote --exit-code --heads "https://github.com/rdkcentral/rialto-ocdm.git" ${{ github.event.pull_request.head.ref }} > /dev/null
if [ $? -eq 0 ]; then
branch="${{ github.event.pull_request.head.ref }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/server_component_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: server_component_tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down Expand Up @@ -122,19 +122,19 @@ jobs:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout repo
if: ${{ github.ref != 'refs/heads/master' }}
if: ${{ github.event_name == 'pull_request' && github.base_ref == 'master' }}
uses: actions/checkout@v4

# Get cached lcov server component tests interface api stats
- name: Get server component tests interface api stats
id: cache-server-component-coverage-stats
uses: actions/cache@v4
if: ${{ github.ref != 'refs/heads/master' }}
if: ${{ success() && github.event_name == 'pull_request' && github.base_ref == 'master' }}
with:
path: build/coverage_statistics_public_apis.txt
key: ${{ runner.os }}-server-component-coverage-stats-${{ github.run_id }}-${{ github.run_number }}

# Run the check_coverage_stats script
- name: Process Coverage Statistics
if: ${{ success() && github.ref != 'refs/heads/master' }}
if: ${{ success() && github.event_name == 'pull_request' && github.base_ref == 'master' }}
run: python scripts/coverage/check_coverage_stats.py build/coverage_statistics_public_apis.txt 8
2 changes: 1 addition & 1 deletion .github/workflows/valgrind_client_component_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: valgrind_client_component_tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/valgrind_server_component_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: valgrind_server_component_tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/valgrind_ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: valgrind_ut

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
# Triggers the workflow on push or pull request events but only for the "master" and "release/*" branches
push:
branches: ["master", "release/*"]
pull_request:
Expand Down
Empty file added t1.txt
Empty file.
Loading