-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (53 loc) · 1.67 KB
/
lint.yml
File metadata and controls
58 lines (53 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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 <michaero@iis.ee.ethz.ch>
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
lint-sv-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Bender
uses: pulp-platform/pulp-actions/bender-install@v2
with:
version: 0.28.2
- name: Get files
run: |
bender_files=$(bender script flist -n -t test -t memory_island_standalone_synth)
bender_files=$(echo $bender_files | tr '\n' ' ')
echo $bender_files
echo "BENDER_FILES=$bender_files" >> $GITHUB_ENV
- name: Print fix
run: |
echo "Fix with \`make format\`"
- name: Run Verible formatter action
uses: chipsalliance/verible-formatter-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files:
$BENDER_FILES
parameters:
--flagfile .verilog_format
fail_on_formatting_suggestions: true