Skip to content

Commit

Permalink
CI: Lint sources
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Wistoff <[email protected]>
  • Loading branch information
niwis committed Jul 1, 2023
1 parent 45c12eb commit 2d7f8a9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/verible-lint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2023 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0

{
"problemMatcher": [
{
"owner": "verible-lint-matcher",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+):\\s(.+)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
}
]
}
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2023 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

name: lint
on: [ push, pull_request, workflow_dispatch ]

jobs:
################
# Verible Lint #
################
verilog:
name: Verilog Sources
# This job runs on Linux (fixed ubuntu version)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chipsalliance/verible-linter-action@main
with:
paths: |
./src
exclude_paths: |
./src/deprecated
extra_args: "--rules=-interface-name-style --lint_fatal"
github_token: ${{ secrets.GITHUB_TOKEN }}
reviewdog_reporter: github-check

0 comments on commit 2d7f8a9

Please sign in to comment.