-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from davidovich/modernize
Modernize
- Loading branch information
Showing
8 changed files
with
143 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
SHELL=/bin/bash | ||
|
||
export GO111MODULE := on | ||
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
SCAFFOLD_BIN := bin/scaffold | ||
SRCS = $(shell go list -buildvcs=false -f '{{ $$dir := .Dir}}{{range .GoFiles}}{{ printf "%s/%s\n" $$dir . }}{{end}}' $(1)/... github.com/davidovich/summon/...) | ||
|
||
DOC_REPO_NAME := davidovich.github.io | ||
DOC_REPO := [email protected]:davidovich/$(DOC_REPO_NAME).git | ||
SUMMON_BADGE_JSON_FILE := $(DOC_REPO_NAME)/shields/summon/summon.json | ||
TEST_TIMEOUT := 30s | ||
|
||
GOTESTSUM_VERSION=latest | ||
gotestsum := build/gotestsum | ||
|
||
TEST_COMMAND := $(gotestsum) --format pkgname --packages="./..." -- -timeout $(TEST_TIMEOUT) | ||
|
||
ASSETS := $(shell find internal/scaffold/templates/scaffold) | ||
|
||
|
@@ -32,7 +38,10 @@ COVERAGE_PERCENT_FILE := build/coverage/percent.txt | |
HTML_COVERAGE := build/coverage/index.html | ||
|
||
.PHONY: test | ||
test: clean-coverage output-coverage | ||
test: $(gotestsum) clean-coverage output-coverage | ||
|
||
$(gotestsum): | ||
GOBIN=$(ROOT_DIR)/build go install gotest.tools/gotestsum@$(GOTESTSUM_VERSION) | ||
|
||
.PHONY: clean-coverage | ||
clean-coverage: | ||
|
@@ -51,7 +60,7 @@ $(HTML_COVERAGE): $(COVERAGE) | |
|
||
$(COVERAGE): | ||
@mkdir -p $(@D) | ||
go test -buildvcs=false ./... -timeout 30s --coverpkg=./... -coverprofile $@ -v | ||
$(TEST_COMMAND) -buildvcs=false --coverpkg=./... -coverprofile $@ -v | ||
|
||
.PHONY: update-coverage-badge | ||
update-coverage-badge: $(COVERAGE_PERCENT_FILE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
module github.com/davidovich/summon | ||
|
||
go 1.18 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/DiSiqueira/GoTree v1.0.1-0.20190529205929-3e23dcd4532b | ||
github.com/Masterminds/sprig/v3 v3.2.2 | ||
github.com/google/go-cmp v0.5.8 | ||
github.com/Masterminds/sprig/v3 v3.2.3 | ||
github.com/google/go-cmp v0.6.0 | ||
github.com/lithammer/dedent v1.1.0 | ||
github.com/spf13/afero v1.8.2 | ||
github.com/spf13/cobra v1.4.0 | ||
github.com/spf13/afero v1.11.0 | ||
github.com/spf13/cobra v1.8.0 | ||
github.com/spf13/pflag v1.0.5 | ||
github.com/stretchr/testify v1.7.1 | ||
golang.org/x/exp v0.0.0-20220428152302-39d4317da171 | ||
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 | ||
github.com/stretchr/testify v1.8.4 | ||
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b | ||
gopkg.in/yaml.v3 v3.0.1 | ||
) | ||
|
||
require ( | ||
github.com/Masterminds/goutils v1.1.1 // indirect | ||
github.com/Masterminds/semver/v3 v3.1.1 // indirect | ||
github.com/Masterminds/semver/v3 v3.2.1 // indirect | ||
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/google/uuid v1.1.2 // indirect | ||
github.com/huandu/xstrings v1.3.1 // indirect | ||
github.com/imdario/mergo v0.3.11 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/mitchellh/copystructure v1.0.0 // indirect | ||
github.com/mitchellh/reflectwalk v1.0.0 // indirect | ||
github.com/google/uuid v1.5.0 // indirect | ||
github.com/huandu/xstrings v1.4.0 // indirect | ||
github.com/imdario/mergo v0.3.16 // indirect | ||
github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
github.com/mitchellh/copystructure v1.2.0 // indirect | ||
github.com/mitchellh/reflectwalk v1.0.2 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/shopspring/decimal v1.2.0 // indirect | ||
github.com/spf13/cast v1.4.1 // indirect | ||
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
github.com/shopspring/decimal v1.3.1 // indirect | ||
github.com/spf13/cast v1.6.0 // indirect | ||
golang.org/x/crypto v0.17.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
) |
Oops, something went wrong.