From 3277751b973c653cf21b743ff2e2c9fdfde6250d Mon Sep 17 00:00:00 2001 From: Michael Rogenmoser Date: Fri, 26 Jul 2024 10:27:26 +0200 Subject: [PATCH] Add initial linting CI --- .github/workflows/lint.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..df2a7dd --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,29 @@ +# Copyright 2024 ETH Zurich and University of Bologna. +# Solderpad Hardware License, Version 0.51, see LICENSE for details. +# SPDX-License-Identifier: SHL-0.51 + +# Author: Michael Rogenmoser + +name: lint + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + lint-verilog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: chipsalliance/verible-linter-action@main + with: + paths: | + ./src + ./test + exclude_paths: + extra_args: "--rules=-interface-name-style --lint_fatal --parse_fatal" + github_token: ${{ secrets.GITHUB_TOKEN }} + reviewdog_reporter: github-check