mirror of
https://github.com/labstack/echo.git
synced 2025-11-29 22:48:07 +02:00
CI: test with Go 1.24 (#2748)
This commit is contained in:
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@@ -14,7 +14,7 @@ permissions:
|
||||
|
||||
env:
|
||||
# run static analysis only with the latest Go version
|
||||
LATEST_GO_VERSION: "1.23"
|
||||
LATEST_GO_VERSION: "1.24"
|
||||
|
||||
jobs:
|
||||
check:
|
||||
|
||||
4
.github/workflows/echo.yml
vendored
4
.github/workflows/echo.yml
vendored
@@ -14,7 +14,7 @@ permissions:
|
||||
|
||||
env:
|
||||
# run coverage and benchmarks only with the latest Go version
|
||||
LATEST_GO_VERSION: "1.23"
|
||||
LATEST_GO_VERSION: "1.24"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
# Echo tests with last four major releases (unless there are pressing vulnerabilities)
|
||||
# As we depend on `golang.org/x/` libraries which only support last 2 Go releases we could have situations when
|
||||
# we derive from last four major releases promise.
|
||||
go: ["1.20", "1.21", "1.22", "1.23"]
|
||||
go: ["1.21", "1.22", "1.23", "1.24"]
|
||||
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
||||
4
Makefile
4
Makefile
@@ -31,6 +31,6 @@ benchmark: ## Run benchmarks
|
||||
help: ## Display this help screen
|
||||
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
goversion ?= "1.20"
|
||||
test_version: ## Run tests inside Docker with given version (defaults to 1.20 oldest supported). Example: make test_version goversion=1.20
|
||||
goversion ?= "1.21"
|
||||
test_version: ## Run tests inside Docker with given version (defaults to 1.21 oldest supported). Example: make test_version goversion=1.21
|
||||
@docker run --rm -it -v $(shell pwd):/project golang:$(goversion) /bin/sh -c "cd /project && make init check"
|
||||
|
||||
Reference in New Issue
Block a user