-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add go.mod support with v4 * updated helpers * unused dot files
- Loading branch information
Showing
33 changed files
with
166 additions
and
348 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
github: markbates | ||
patreon: buffalo |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Tests | ||
on: [push] | ||
jobs: | ||
|
||
tests-on: | ||
name: ${{matrix.go-version}} ${{matrix.os}} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go-version: [1.12.x, 1.13.x] | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: Test | ||
run: | | ||
go mod tidy -v | ||
go test -race ./... | ||
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 |
---|---|---|
|
@@ -27,4 +27,4 @@ generated/ | |
bin/* | ||
gin-bin | ||
.idea/ | ||
go.* | ||
cover.out |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,46 +1,8 @@ | ||
TAGS ?= "sqlite" | ||
GO_BIN ?= go | ||
|
||
install: | ||
packr2 | ||
$(GO_BIN) install -v ./plush | ||
|
||
deps: | ||
$(GO_BIN) get github.com/gobuffalo/release | ||
$(GO_BIN) get github.com/gobuffalo/packr/v2/packr2 | ||
$(GO_BIN) get -tags ${TAGS} -t ./... | ||
ifeq ($(GO111MODULE),on) | ||
$(GO_BIN) mod tidy | ||
endif | ||
|
||
build: | ||
packr2 | ||
$(GO_BIN) build -v . | ||
|
||
test: | ||
packr2 | ||
$(GO_BIN) test -cover -tags ${TAGS} ./... | ||
|
||
ci-test: | ||
$(GO_BIN) test -tags ${TAGS} -race ./... | ||
|
||
lint: | ||
gometalinter --vendor ./... --deadline=1m --skip=internal | ||
|
||
update: | ||
$(GO_BIN) get -u -tags ${TAGS} | ||
ifeq ($(GO111MODULE),on) | ||
$(GO_BIN) mod tidy | ||
endif | ||
packr2 | ||
make test | ||
make install | ||
ifeq ($(GO111MODULE),on) | ||
$(GO_BIN) mod tidy | ||
endif | ||
|
||
release-test: | ||
$(GO_BIN) test -tags ${TAGS} -race ./... | ||
go test -failfast -short -cover ./... | ||
go mod tidy -v | ||
|
||
release: | ||
release -y -f version.go | ||
cov: | ||
go test -short -coverprofile cover.out ./... | ||
go tool cover -html cover.out | ||
go mod tidy -v |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.