diff --git a/.github/workflows/golangci_lint.yml b/.github/workflows/golangci_lint.yml index 6c0708f..d115b5e 100644 --- a/.github/workflows/golangci_lint.yml +++ b/.github/workflows/golangci_lint.yml @@ -13,20 +13,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 + - name: Run golangci-lint for multinode + uses: golangci/golangci-lint-action@v3 with: - go-version: '1.19' - - - name: Install golangci-lint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2 - env: - GOROOT: /usr/local/go - GOPATH: $HOME/go - PATH: $HOME/go/bin:/usr/local/go/bin:$PATH - - - name: Lint multinode - run: | - cd ./multinode - golangci-lint run + version: v1.62.2 + working-directory: ./multinode + args: run