From 2872729f19809fd1b3876e667618a0fb327df70e Mon Sep 17 00:00:00 2001 From: Zhao Chen Date: Thu, 26 Sep 2024 11:25:33 +0800 Subject: [PATCH] chore: add lint for tools --- .github/workflows/tools-lint.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/tools-lint.yml diff --git a/.github/workflows/tools-lint.yml b/.github/workflows/tools-lint.yml new file mode 100644 index 0000000..ce23006 --- /dev/null +++ b/.github/workflows/tools-lint.yml @@ -0,0 +1,31 @@ +name: Lint + +on: + push: + branches: [main, release-*] + pull_request: + branches: [main, release-*] + +permissions: + contents: read + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout code + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 + with: + go-version-file: tools/mdctl/go.mod + cache: false + + - name: Golangci lint + uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 + with: + version: v1.54 + args: --verbose + working-directory: tools/mdctl