From aa6ac6d4db6ed5a2ba5fd8e3f9bead46674b3e42 Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Mon, 25 Dec 2023 04:32:56 -0800 Subject: [PATCH] build(ci): setup Golang linter nilaway (#1310) * feat(ci): add golang linter * continue-on-error --- .github/workflows/golang-linter.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/golang-linter.yml diff --git a/.github/workflows/golang-linter.yml b/.github/workflows/golang-linter.yml new file mode 100644 index 0000000..54e6d52 --- /dev/null +++ b/.github/workflows/golang-linter.yml @@ -0,0 +1,33 @@ +name: Golang linters +on: + push: + branches: + - "master" + - "develop" + tags: + - 'v*' + pull_request: + +jobs: + nilaway: + name: Nilaway Linter + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + cache: true + + - name: Install Nilaway + run: go install go.uber.org/nilaway/cmd/nilaway@latest + + - name: Nilaway + # This will fail for a while. Lots of work needs to go in to resolve the callsites. + # Long-term the bypass below should be removed. + continue-on-error: true + run: nilaway ./...