From 35e13ebb509cfd95b22db86a8192f95310f7508d Mon Sep 17 00:00:00 2001 From: Kirill Sysoev Date: Wed, 12 Jun 2024 19:47:50 +0800 Subject: [PATCH] chore: Update Go version in GitHub Actions workflow to include matrix strategy --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccd9d49..5e9d10b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,12 +13,15 @@ permissions: jobs: tests: runs-on: ubuntu-latest + strategy: + matrix: + go-version: ["1.21.x", "1.22.x"] steps: - uses: actions/checkout@v3 - - name: Setup Go 1.21 + - name: Setup Go ${{ matrix.go-version }} uses: actions/setup-go@v3 with: - go-version: "1.21.x" + go-version: ${{ matrix.go-version }} - name: Display Go version run: go version - name: Code Lint