From 81409a8d0927981c172a111131a3700374d6b812 Mon Sep 17 00:00:00 2001 From: KinjiKawaguchi Date: Fri, 1 Mar 2024 17:28:31 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20go=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=BF?= =?UTF-8?q?=E3=83=BC=E3=82=92=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/golangci-lint.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/golangci-lint.yml diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 00000000..72132e1d --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,31 @@ +name: golangci-lint + +on: + push: + branches: + - main + - develop + pull_request: + branches: + - main + - develop + paths: + - "typing-server/**" + +permissions: + contents: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.22.0" + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: v1.54 + working-directory: typing-server # Set this to the directory where your Go code is located