From 83e1ff30c15dd1e8a654ff57774e6c12240e36e1 Mon Sep 17 00:00:00 2001 From: "Dr. Carsten Leue" Date: Thu, 10 Aug 2023 13:22:31 +0200 Subject: [PATCH] chore: test on multiple versions of go Signed-off-by: Dr. Carsten Leue --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 030b891..96a165f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,22 +17,25 @@ on: env: # Currently no way to detect automatically DEFAULT_BRANCH: main - GO_VERSION: 1.20.5 # renovate: datasource=golang-version depName=golang + GO_VERSION: 1.20.6 # renovate: datasource=golang-version depName=golang NODE_VERSION: 18 DRY_RUN: true jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.20.x', '1.21.x' ] steps: # full checkout for semantic-release - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 with: fetch-depth: 0 - - name: Set up go ${{env.GO_VERSION}} + - name: Set up go ${{ matrix.go-version }} uses: actions/setup-go@v4 with: - go-version: ${{env.GO_VERSION}} + go-version: ${{ matrix.go-version }} - name: Tests run: |