mirror of https://code.forgejo.org/forgejo/runner
build: use go toolchain
parent
f8b0ccf1a3
commit
055854d1d7
|
@ -44,6 +44,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
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
|
||||||
|
|
||||||
- run: make vet
|
- run: make vet
|
||||||
|
|
||||||
- run: make build
|
- run: make build
|
||||||
|
|
Loading…
Reference in New Issue