From fcc6008af2c48965e112a29247a1603d796629ec Mon Sep 17 00:00:00 2001 From: shiroyk Date: Fri, 18 Oct 2024 15:55:44 +0800 Subject: [PATCH] chore: update workflow --- .github/workflows/main.yaml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7b48a59..7f75e12 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,27 +13,25 @@ permissions: jobs: # linter -# lint: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3 -# with: -# fetch-depth: 0 -# - uses: actions/setup-go@v3 -# with: -# go-version: 1.19.x -# - uses: golangci/golangci-lint-action@v3 -# with: -# version: latest + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: stable + - uses: golangci/golangci-lint-action@v6 + with: + version: v1.60 # tests test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: stable - run: make tests # release @@ -42,12 +40,12 @@ jobs: needs: [test] if: startsWith(github.event.ref, 'refs/tags/v') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: stable - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: