Skip to content

Commit 476e3e6

Browse files
committed
Add CI
Signed-off-by: Nils Wistoff <[email protected]>
1 parent b70cde6 commit 476e3e6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright 2025 ETH Zurich and University of Bologna.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Author: Nils Wistoff <[email protected]>
6+
7+
name: lint-license
8+
9+
on: [ push, pull_request, workflow_dispatch ]
10+
11+
jobs:
12+
lint-license:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: lint license
16+
uses: pulp-platform/pulp-actions/[email protected]
17+
with:
18+
license: |
19+
Copyright (\d{4}(-\d{4})?\s)?(ETH Zurich and University of Bologna|lowRISC contributors).
20+
(Solderpad Hardware License, Version 0.51|Licensed under the Apache License, Version 2.0), see LICENSE for details.
21+
SPDX-License-Identifier: (SHL-0.51|Apache-2.0)
22+
23+
lint-sv:
24+
runs-on: ubuntu-latest
25+
steps:
26+
-
27+
name: Checkout
28+
uses: actions/checkout@v3
29+
-
30+
name: Run Verible
31+
uses: chipsalliance/verible-linter-action@main
32+
with:
33+
paths: src
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
fail_on_error: true
36+
reviewdog_reporter: github-annotations

0 commit comments

Comments
 (0)