Skip to content

Commit 01588d3

Browse files
committed
Add hint to fix formatting
1 parent e6eadb4 commit 01588d3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/lint.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ jobs:
3131
lint-sv-format:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
with:
3636
ref: ${{ github.event.pull_request.head.sha }}
37+
- name: Print fix
38+
run: |
39+
echo "Fix with `make format`"
3740
- name: Run Verible formatter action
3841
uses: chipsalliance/verible-formatter-action@main
3942
with:
4043
github_token: ${{ secrets.GITHUB_TOKEN }}
4144
files:
4245
./src/*.sv
4346
./test/*.sv
44-
./text/synth/*.sv
47+
./test/synth/*.sv
4548
parameters:
4649
--flagfile .verilog_format
4750
fail_on_formatting_suggestions: true

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ nonfree-init:
3232
cd nonfree && git checkout $(NONFREE_COMMIT)
3333

3434
-include $(MEMORY_ISLAND_ROOT)/nonfree/nonfree.mk
35+
36+
.PHONY: format
37+
format:
38+
verible-verilog-format ./src/*.sv ./test/*.sv ./test/synth/*.sv --inplace --flagfile .verilog_format

0 commit comments

Comments
 (0)