diff options
-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 |