diff options
author | Michael Kriese <michael.kriese@gmx.de> | 2024-12-04 21:09:41 +0100 |
---|---|---|
committer | Michael Kriese <michael.kriese@gmx.de> | 2024-12-04 21:09:41 +0100 |
commit | a4b53935d9da22f675a68cbe826de28c8282b0d9 (patch) | |
tree | fe133d21fc9f469c59308378e8e12c7ccfdec688 | |
parent | Merge pull request 'fix(cache-server): use consistent uint64' (#68) from fix/... (diff) | |
parent | build: use go toolchain (diff) | |
download | forgejo-act-a4b53935d9da22f675a68cbe826de28c8282b0d9.tar.xz forgejo-act-a4b53935d9da22f675a68cbe826de28c8282b0d9.zip |
Merge pull request 'build: use go toolchain' (#72) from build/use-go-toolchain into main
Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/72
-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 |