From 9c5fb8d23c8ac9a60a05bacf6b9539bb70f0e616 Mon Sep 17 00:00:00 2001 From: Xiaoyu PENG Date: Mon, 13 May 2024 10:33:47 +0800 Subject: [PATCH] Update go.yml (#225) update go to 1.22, drop 1.18- --- .github/workflows/go.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 82cdc33..9376f71 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,18 +13,18 @@ jobs: strategy: matrix: go: + - "1.22" + - "1.21" + - "1.20" - "1.19" - "1.18" - "1.17" - "1.16" - - "1.15" - - "1.14" - - "1.13" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} @@ -35,14 +35,14 @@ jobs: name: "Static check" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: "1.16" + go-version: "1.19" - name: staticcheck run: | - go get -u honnef.co/go/tools/cmd/staticcheck@v0.2.2 && + go install honnef.co/go/tools/cmd/staticcheck@latest && $HOME/go/bin/staticcheck ./... - name: Revive Action uses: morphy2k/revive-action@v2.1.1 @@ -54,13 +54,13 @@ jobs: strategy: matrix: go: + - "1.22" + - "1.21" + - "1.20" - "1.19" - "1.18" - "1.17" - "1.16" - - "1.15" - - "1.14" - - "1.13" steps: - uses: actions/checkout@v2 - name: Set up Go