Skip to content

Commit f54f4cf

Browse files
committed
ci: migrate reusable workflows to qrb_ros_gh_actions
Signed-off-by: Jiaxing Shi <[email protected]>
1 parent 8f9598e commit f54f4cf

11 files changed

+86
-132
lines changed

.github/workflows/action-lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Action Linter Workflows
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
actionlint:
9+
uses: qualcomm-qrb-ros/qrb_ros_gh_actions/.github/workflows/action-lint.yml@main

.github/workflows/commit-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: CI Linters for Pull Requets
1+
name: Commit Lint Checker for Pull Requets
22

33
on: [push, pull_request]
44

55
jobs:
66
commitlint:
7-
uses: qualcomm-qrb-ros/.github/.github/workflows/commitlint.yml@commitlint
7+
uses: qualcomm-qrb-ros/qrb_ros_gh_actions/.github/workflows/commit-lint.yml@main

.github/workflows/cpp-code-style-checker.yml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,4 @@ on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
cpp-code-style-check:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v4
12-
13-
- name: Install clang-format
14-
run: sudo apt install -y clang-format
15-
16-
- name: Setup clang-format configuration
17-
run: |
18-
if [ ! -f ./.clang-format ]; then
19-
echo "No .clang-format found, will use default configuration"
20-
curl -o .clang-format https://raw.githubusercontent.com/qualcomm-qrb-ros/.github/main/code-style-profiles/.clang-format
21-
fi
22-
23-
- name: Check code style
24-
run: |
25-
SRC=$(git ls-tree --full-tree -r HEAD | grep -e "\.\(c\|h\|hpp\|cpp\)\$" | cut -f 2)
26-
27-
echo -e "Check source files: \n$SRC\n"
28-
clang-format -style=file -i $SRC
29-
30-
if ! git diff --exit-code; then
31-
echo -e "\nCode does not match required style !!!"
32-
echo "Please use clang-format to format your code."
33-
exit 1
34-
else
35-
echo "All files are properly formatted."
36-
fi
7+
uses: qualcomm-qrb-ros/qrb_ros_gh_actions/.github/workflows/cpp-code-style-checker.yml@main

.github/workflows/linter-check.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Qualcomm Preflight Checks
2+
on:
3+
pull_request_target:
4+
branches: [ main ]
5+
push:
6+
branches: [ main ]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
security-events: write
12+
13+
jobs:
14+
qcom-preflight-checks:
15+
uses: qualcomm/qcom-reusable-workflows/.github/workflows/[email protected]
16+
with:
17+
# ✅ Preflight Checkers
18+
repolinter: true # default: true
19+
semgrep: true # default: true
20+
copyright-license-detector: true # default: true
21+
pr-check-emails: true # default: true
22+
dependency-review: true # default: true
23+
secrets:
24+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: QIRP Build Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
qirp-sdk-build-checker:
7+
uses: qualcomm-qrb-ros/qrb_ros_gh_actions/.github/workflows/qirp-sdk-build-checker.yml@main
8+
# with:
9+
# dependencies: qualcomm-qrb-ros/qrb_ros_interfaces
10+
# colcon_args: --cmake-clean-first

.github/workflows/quic-organization-repolinter.properties.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/quic-organization-repolinter.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Close stale issues and pull requests with no recent activity'
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@v9
15+
with:
16+
stale-issue-message: 'This issue has been marked as stale due to 60 days of inactivity. To prevent automatic closure in 10 days, remove the stale label or add a comment. You can reopen a closed issue at any time.'
17+
stale-pr-message: 'This pull request has been marked as stale due to 60 days of inactivity. To prevent automatic closure in 10 days, remove the stale label or add a comment. You can reopen a closed pull request at any time.'
18+
exempt-issue-labels: bug,enhancement
19+
exempt-pr-labels: bug,enhancement
20+
days-before-stale: 60
21+
days-before-close: 10
22+
remove-stale-when-updated: true
23+
remove-issue-stale-when-updated: true
24+
remove-pr-stale-when-updated: true

.github/workflows/todo.svg

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)