From 18ed1feac26a0e45fab0087aa3116567ab35a50b Mon Sep 17 00:00:00 2001 From: Ola <1386739+olahol@users.noreply.github.com> Date: Sat, 30 Mar 2024 17:26:22 +0100 Subject: [PATCH] Add testing matrix --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74cf3bf..c58c679 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,14 +5,17 @@ on: - master jobs: test: - runs-on: 'ubuntu-latest' + strategy: + matrix: + go-version: ["1.20", "1.21", "1.22"] + runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v3 with: fetch-depth: 2 - uses: actions/setup-go@v3 with: - go-version: '1.20' + go-version: ${{ matrix.go-version }} - run: go get -t -v ./... - run: go test -race -coverprofile=coverage.out -covermode=atomic -timeout 60s - uses: codecov/codecov-action@v3