From 58d858160641e9179720655a2b1f0e385d1f047d Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Tue, 17 Sep 2024 17:48:49 +0200 Subject: [PATCH] golangci: lint with Go 1.21, 1.22, 1.23 and macOS, Linux, Windows (#429) Signed-off-by: Daniel Maslowski --- .github/workflows/golangci-lint.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index f37398c2..99ccedc6 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -7,13 +7,21 @@ on: - master - main pull_request: + jobs: golangci: + strategy: + matrix: + go: ['1.21', '1.22', '1.23'] + os: [ubuntu-latest, macos-latest, windows-latest] name: lint - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - working-directory: pkg + version: v1.60