From 5ea2c84a4071d5aa9cd45dd916b6a4c070072672 Mon Sep 17 00:00:00 2001 From: Ales Verbic Date: Fri, 12 Sep 2025 13:26:40 -0400 Subject: [PATCH] ci: add nilaway Signed-off-by: Ales Verbic --- .github/workflows/nilaway.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/nilaway.yml diff --git a/.github/workflows/nilaway.yml b/.github/workflows/nilaway.yml new file mode 100644 index 00000000..2fd842dd --- /dev/null +++ b/.github/workflows/nilaway.yml @@ -0,0 +1,25 @@ +name: nilaway +on: + push: + tags: + - v* + branches: + - main + pull_request: + +permissions: + contents: read + +jobs: + nilaway: + name: nilaway + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 https://github.com/actions/checkout/releases/tag/v5.0.0 + - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 https://github.com/actions/setup-go/releases/tag/v6.0.0 + with: + go-version: 1.25.x + - name: install nilaway + run: go install go.uber.org/nilaway/cmd/nilaway@latest + - name: run nilaway + run: nilaway ./... || true