mirror of https://gitea.com/gitea/go-sdk.git
ci: update Gitea versions in workflows and Makefile
- Update Gitea Docker image version from `1.21.8` to `1.21.10` in testing workflow - Update Gitea version from `1.21.1` to `1.21.10` in Makefile Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
parent
bad4de0196
commit
b748c00017
|
@ -28,7 +28,7 @@ jobs:
|
||||||
- run: make test
|
- run: make test
|
||||||
services:
|
services:
|
||||||
gitea:
|
gitea:
|
||||||
image: gitea/gitea:1.21.8
|
image: gitea/gitea:1.21.10
|
||||||
cmd:
|
cmd:
|
||||||
- bash
|
- bash
|
||||||
- -c
|
- -c
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -12,7 +12,7 @@ GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.4.0
|
||||||
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.0
|
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.0
|
||||||
GITEA_VET_PACKAGE ?= code.gitea.io/gitea-vet@v0.2.1
|
GITEA_VET_PACKAGE ?= code.gitea.io/gitea-vet@v0.2.1
|
||||||
|
|
||||||
GITEA_VERSION := 1.21.1
|
GITEA_VERSION := 1.21.10
|
||||||
GITEA_DL := https://dl.gitea.com/gitea/$(GITEA_VERSION)/gitea-$(GITEA_VERSION)-
|
GITEA_DL := https://dl.gitea.com/gitea/$(GITEA_VERSION)/gitea-$(GITEA_VERSION)-
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
|
@ -72,7 +72,7 @@ vet:
|
||||||
cd gitea && $(GO) vet -vettool=gitea-vet $(PACKAGE)
|
cd gitea && $(GO) vet -vettool=gitea-vet $(PACKAGE)
|
||||||
|
|
||||||
.PHONY: ci-lint
|
.PHONY: ci-lint
|
||||||
ci-lint:
|
ci-lint:
|
||||||
@cd gitea/; echo -n "gofumpt ...";\
|
@cd gitea/; echo -n "gofumpt ...";\
|
||||||
diff=$$($(GO) run $(GOFUMPT_PACKAGE) -extra -l .); \
|
diff=$$($(GO) run $(GOFUMPT_PACKAGE) -extra -l .); \
|
||||||
if [ -n "$$diff" ]; then \
|
if [ -n "$$diff" ]; then \
|
||||||
|
|
Loading…
Reference in New Issue