Skip to content

Commit 69fb448

Browse files
committed
Add CI
Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
1 parent b70cde6 commit 69fb448

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/lint.yml

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

0 commit comments

Comments
 (0)