summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kriese <michael.kriese@gmx.de>2024-12-04 21:09:41 +0100
committerMichael Kriese <michael.kriese@gmx.de>2024-12-04 21:09:41 +0100
commita4b53935d9da22f675a68cbe826de28c8282b0d9 (patch)
treefe133d21fc9f469c59308378e8e12c7ccfdec688
parentMerge pull request 'fix(cache-server): use consistent uint64' (#68) from fix/... (diff)
parentbuild: use go toolchain (diff)
downloadforgejo-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.yml10
-rw-r--r--go.mod4
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
diff --git a/go.mod b/go.mod
index fc2f293..4e64b16 100644
--- a/go.mod
+++ b/go.mod
@@ -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