From 9eee86d39249840365433bb9d258b48fd094d550 Mon Sep 17 00:00:00 2001 From: "Hazim O. Arafa" Date: Sat, 18 Jan 2025 16:01:23 -0800 Subject: [PATCH] build(ci): test multiple go sdk versions (#1256) Multiple GoLang Versions (1.21, 1.22, 1.23) --- .github/workflows/tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0f0e252cb..b903238cf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,14 +32,17 @@ jobs: tests-sdk-go: if: ${{ !contains(github.event.head_commit.message, '[skip main]') }} runs-on: ubuntu-latest + strategy: + matrix: + go-version: ["1.21", "1.22", "1.23"] steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Go + - name: Setup Go ${{ matrix.go-version }} uses: actions/setup-go@v5 with: - go-version: "stable" + go-version: ${{ matrix.go-version }} - name: Validate Formatting run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1 ; fi