diff --git a/.github/workflows/commit-stage.yml b/.github/workflows/commit-stage.yml index af73764..01ad2bc 100644 --- a/.github/workflows/commit-stage.yml +++ b/.github/workflows/commit-stage.yml @@ -10,6 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: "1.21" + cache: false - name: run golangci-lint uses: golangci/golangci-lint-action@v3 with: @@ -21,9 +25,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "^1.18" + go-version: "1.21" - uses: actions/cache@v3 with: path: | @@ -40,9 +44,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "^1.18" + go-version: "1.21" - uses: actions/cache@v3 with: path: | @@ -65,9 +69,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "^1.18" + go-version: "1.21" - uses: actions/cache@v3 with: path: | @@ -84,9 +88,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: "^1.18" + go-version: "1.21" - uses: actions/cache@v3 with: path: |