From 9631e0103d3f9872892ad22a100eb5cae298e929 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 3 Jan 2022 20:12:10 +0100 Subject: [PATCH] Build using multiple go versions --- .woodpecker.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index ea82db2..6a2510e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,9 +1,15 @@ pipeline: build: - image: golang + image: golang:${GO_VERSION} commands: - go build main.go - go test -v ./... when: branch: master event: [push, pull_request, tag, deployment] + +matrix: + GO_VERSION: + - "1.17" + - "1.16" + - "latest"