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