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