mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 23:29:12 +01:00
c296f4fed6
* When route cannot be found on chi, go to macaron * Stick chi version to 1.5.0 * Follow router log setting
20 lines
395 B
YAML
Vendored
20 lines
395 B
YAML
Vendored
language: go
|
|
|
|
go:
|
|
- 1.10.x
|
|
- 1.11.x
|
|
- 1.12.x
|
|
- 1.13.x
|
|
- 1.14.x
|
|
|
|
script:
|
|
- go get -d -t ./...
|
|
- go vet ./...
|
|
- go test ./...
|
|
- >
|
|
go_version=$(go version);
|
|
if [ ${go_version:13:4} = "1.12" ]; then
|
|
go get -u golang.org/x/tools/cmd/goimports;
|
|
goimports -d -e ./ | grep '.*' && { echo; echo "Aborting due to non-empty goimports output."; exit 1; } || :;
|
|
fi
|
|
|