From 6daf3b8ef7bc0a222c1f02408b832fc6bbc413e0 Mon Sep 17 00:00:00 2001 From: Warrick Lo Date: Fri, 8 May 2026 03:04:38 -0700 Subject: Add GitHub Actions for linting and formatting Signed-off-by: Warrick Lo --- .editorconfig | 4 ++++ .github/workflows/format.yaml | 12 ++++++++++++ .github/workflows/lint.yaml | 12 ++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 .github/workflows/format.yaml create mode 100644 .github/workflows/lint.yaml 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 }} -- cgit v1.2.3