From a1d52d7ffd59c453d59a592ba6ba8513d4f5bc67 Mon Sep 17 00:00:00 2001 From: Kirill Sysoev Date: Sat, 20 Apr 2024 13:00:19 +0800 Subject: [PATCH] Adds run tests against 3 latest version of go to CI configuration --- .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 0423cb2..5d8bf6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,12 +5,15 @@ on: [push] jobs: tests: runs-on: ubuntu-latest + strategy: + matrix: + go-version: ["1.20.x", "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