diff options
author | Michael Kriese <michael.kriese@visualon.de> | 2024-12-04 10:05:43 +0100 |
---|---|---|
committer | Michael Kriese <michael.kriese@visualon.de> | 2024-12-04 10:08:20 +0100 |
commit | 01ec68eab9cb68b975b96599d1e6742c19b0d93f (patch) | |
tree | fe133d21fc9f469c59308378e8e12c7ccfdec688 | |
parent | Merge pull request 'fix(cache-server): use consistent uint64' (#68) from fix/... (diff) | |
download | forgejo-act-01ec68eab9cb68b975b96599d1e6742c19b0d93f.tar.xz forgejo-act-01ec68eab9cb68b975b96599d1e6742c19b0d93f.zip |
build: use go toolchain
-rw-r--r-- | .forgejo/workflows/test.yml | 10 | ||||
-rw-r--r-- | go.mod | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 5498dac..330c635 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -41,6 +41,16 @@ jobs: with: go-version-file: go.mod + - name: validate go version + run: | + set -ex + toolchain=$(grep -oP '(?<=toolchain ).+' go.mod) + version=$(go version | cut -d' ' -f3) + if [ "$toolchain" != "$version" ]; then + echo "go version mismatch: $toolchain <> $version" + exit 1 + fi + - name: vet checks run: go vet -v ./... - name: build @@ -1,6 +1,8 @@ module github.com/nektos/act -go 1.21.13 +go 1.21 + +toolchain go1.21.13 require ( github.com/AlecAivazis/survey/v2 v2.3.7 |