From 05a5f7f1a5fa706e330b132d06471ee570bf6316 Mon Sep 17 00:00:00 2001 From: Jeremy Muriel Date: Fri, 9 Feb 2024 09:24:52 +0100 Subject: [PATCH] workflows: test with golang v1.22 and golangci-lint v1.56 --- .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 97d49db..509e83a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -96,6 +96,20 @@ jobs: id: go - name: Check out code uses: actions/checkout@v4 + - name: Test + run: go test -race -v ./... + + test-1_22: + name: Test 1.22 + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.22 + uses: actions/setup-go@v5 + with: + go-version: '1.22' + id: go + - name: Check out code + uses: actions/checkout@v4 - 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 2bae766..82e3483 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.21 + - name: Set up Go 1.22 uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.22 check-latest: true id: go - name: Check out code diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 6093a3b..21e262c 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.21 + - name: Set up Go 1.22 uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.22 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.54 + version: v1.56 args: -c .golangci.yml -v