diff options
| author | Warrick Lo <wlo@warricklo.net> | 2026-05-08 03:04:38 -0700 |
|---|---|---|
| committer | Warrick Lo <wlo@warricklo.net> | 2026-05-08 03:04:38 -0700 |
| commit | 6daf3b8ef7bc0a222c1f02408b832fc6bbc413e0 (patch) | |
| tree | fb3f71717c051c727fe83b4c898b0922c89bb902 | |
| parent | Add project scaffolding (diff) | |
| download | montreal-6daf3b8ef7bc0a222c1f02408b832fc6bbc413e0.tar.xz montreal-6daf3b8ef7bc0a222c1f02408b832fc6bbc413e0.zip | |
Add GitHub Actions for linting and formatting
Signed-off-by: Warrick Lo <wlo@warricklo.net>
Diffstat (limited to '')
| -rw-r--r-- | .editorconfig | 4 | ||||
| -rw-r--r-- | .github/workflows/format.yaml | 12 | ||||
| -rw-r--r-- | .github/workflows/lint.yaml | 12 |
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 }} |