Skip to content

Commit

Permalink
Fluent Binder for Query/Path/Form binding.
Browse files Browse the repository at this point in the history
CI: report coverage for latest go (1.15) version
  • Loading branch information
aldas committed Jan 2, 2021
1 parent 6119aec commit 3751b5b
Show file tree
Hide file tree
Showing 6 changed files with 4,282 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/echo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
go test -race --coverprofile=coverage.coverprofile --covermode=atomic ./...
- name: Upload coverage to Codecov
if: success() && matrix.go == 1.13 && matrix.os == 'ubuntu-latest'
if: success() && matrix.go == 1.15 && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
with:
token:
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@ test: ## Run tests
race: ## Run tests with data race detector
@go test -race ${PKG_LIST}

benchmark: ## Run benchmarks
@go test -run="-" -bench=".*" ${PKG_LIST}

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.12"
test_version: ## Run tests inside Docker with given version (defaults to 1.12 oldest supported). Example: make test_version goversion=1.13
@docker run --rm -it -v $(shell pwd):/project golang:$(goversion) /bin/sh -c "cd /project && make check"
Loading

0 comments on commit 3751b5b

Please sign in to comment.