From d0a9ab7bb6bd36832e4a8dd5f12bf93f0a39857a Mon Sep 17 00:00:00 2001 From: Kay Date: Mon, 23 Oct 2023 17:18:02 +0800 Subject: [PATCH] chore(CI): update pipeline --- .github/workflows/linting.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 122006c..6cf449f 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -10,20 +10,16 @@ on: - main jobs: - linting: + golangci: + name: lint runs-on: ubuntu-latest - steps: - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: '1.21.0' - - - name: Checkout code - uses: actions/checkout@v3 - - - name: Installing golangci-lint - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1 - - - name: Formatting and linting the project - run: make check \ No newline at end of file + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v3.7.0 \ No newline at end of file