From ccad91e1ca8c03441477b896a03186d86d6eb7ee Mon Sep 17 00:00:00 2001 From: Jeremy Muriel Date: Fri, 15 Sep 2023 08:40:30 +0200 Subject: [PATCH] workflows: test with golang v1.21 tests: bump golangci-lint to v1.54 --- .github/workflows/go.yml | 14 ++++++++++++++ .github/workflows/golangci-lint-latest.yml | 4 ++-- .github/workflows/golangci-lint.yml | 6 +++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index be5db32..d678286 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -82,6 +82,20 @@ jobs: id: go - name: Check out code uses: actions/checkout@v3 + - name: Test + run: go test -race -v ./... + + test-1_21: + name: Test 1.21 + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.21 + uses: actions/setup-go@v4 + with: + go-version: '1.21' + id: go + - name: Check out code + uses: actions/checkout@v3 - name: Test run: go test -race -v ./... -coverprofile=coverage.out -covermode=atomic diff --git a/.github/workflows/golangci-lint-latest.yml b/.github/workflows/golangci-lint-latest.yml index 6e0bb81..4c7a255 100644 --- a/.github/workflows/golangci-lint-latest.yml +++ b/.github/workflows/golangci-lint-latest.yml @@ -8,10 +8,10 @@ jobs: name: Run runs-on: ubuntu-latest steps: - - name: Set up Go 1.19 + - name: Set up Go 1.21 uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 check-latest: true id: go - name: Check out code diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index aca203d..8b2d2db 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -5,10 +5,10 @@ jobs: name: Run runs-on: ubuntu-latest steps: - - name: Set up Go 1.19 + - name: Set up Go 1.21 uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: 1.21 check-latest: true id: go - name: Check out code @@ -16,5 +16,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.53 + version: v1.54 args: -c .golangci.yml -v