From 845da8f6a17466690f071c408ffa418410416244 Mon Sep 17 00:00:00 2001 From: Mark Kremer Date: Sat, 21 Sep 2024 14:54:52 +0200 Subject: [PATCH] Add matrix testing to actions for Go versions --- .github/workflows/go.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 28542a5..41af4a1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,13 +13,19 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + go: + - '1.21' # minimum supported version + - 'stable' + name: "build with Go ${{ matrix.go }}" steps: - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version: ${{ matrix.go }} - name: Install goveralls if: ${{ github.ref == 'refs/heads/main' }}