From 00aa6980d75b80dcfb5dd0d9d5c16ca99d531f79 Mon Sep 17 00:00:00 2001 From: Taekjin LEE Date: Tue, 10 Mar 2026 08:36:46 +0900 Subject: [PATCH] ci: add GitHub Actions workflow for linting Autoware system design format - Introduced a new workflow to lint system design format files on pull requests and pushes to the main branch. - Updated pre-commit configuration to include a new hook for linting with autoware_system_designer. Signed-off-by: Taekjin LEE --- .../lint-autoware-system-design-format.yml | 30 +++++++++++++++++++ .pre-commit-config.yaml | 6 ++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/lint-autoware-system-design-format.yml diff --git a/.github/workflows/lint-autoware-system-design-format.yml b/.github/workflows/lint-autoware-system-design-format.yml new file mode 100644 index 000000000..5a272ce02 --- /dev/null +++ b/.github/workflows/lint-autoware-system-design-format.yml @@ -0,0 +1,30 @@ +name: Lint Autoware System Design Format + +on: + pull_request: + paths: + - "**/*.node.yaml" + - "**/*.module.yaml" + - "**/*.system.yaml" + - "**/*.parameter_set.yaml" + push: + branches: + - main + paths: + - "**/*.node.yaml" + - "**/*.module.yaml" + - "**/*.system.yaml" + - "**/*.parameter_set.yaml" + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Lint system design format files + uses: autowarefoundation/autoware_system_designer@v0.3.0 + with: + design_files_path: . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8bc283de..4076bc2e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -94,4 +94,10 @@ repos: args: [--quiet, '--filter=-runtime/arrays,-build/c++17,-readability/casting'] exclude: .cu + - repo: https://github.com/autowarefoundation/autoware_system_designer + rev: v0.3.0 + hooks: + - id: lint-system-design-format + args: [--format=github-actions] + exclude: .svg