aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarrick Lo <wlo@warricklo.net>2026-05-08 03:04:38 -0700
committerWarrick Lo <wlo@warricklo.net>2026-05-08 03:04:38 -0700
commit6daf3b8ef7bc0a222c1f02408b832fc6bbc413e0 (patch)
treefb3f71717c051c727fe83b4c898b0922c89bb902
parentAdd project scaffolding (diff)
downloadmontreal-6daf3b8ef7bc0a222c1f02408b832fc6bbc413e0.tar.xz
montreal-6daf3b8ef7bc0a222c1f02408b832fc6bbc413e0.zip
Add GitHub Actions for linting and formatting
Signed-off-by: Warrick Lo <wlo@warricklo.net>
-rw-r--r--.editorconfig4
-rw-r--r--.github/workflows/format.yaml12
-rw-r--r--.github/workflows/lint.yaml12
3 files changed, 28 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index 349051c..17a55fa 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -13,3 +13,7 @@ indent_size = 8
[*.{sv,svh,v,vh}]
indent_style = space
indent_size = 2
+
+[*.{yaml,yml}]
+indent_style = space
+indent_size = 2
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml
new file mode 100644
index 0000000..fbef4a8
--- /dev/null
+++ b/.github/workflows/format.yaml
@@ -0,0 +1,12 @@
+name: Verible Formatter
+
+on: [pull_request]
+
+jobs:
+ format:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ - uses: chipsalliance/verible-formatter-action@main
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
new file mode 100644
index 0000000..e28e711
--- /dev/null
+++ b/.github/workflows/lint.yaml
@@ -0,0 +1,12 @@
+name: Verible Linter
+
+on: [push, pull_request]
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ - uses: chipsalliance/verible-linter-action@main
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}