Skip to content

Commit

Permalink
Add go.mod support with v4 (#107)
Browse files Browse the repository at this point in the history
* Add go.mod support with v4

* updated helpers

* unused dot files
  • Loading branch information
markbates authored Jan 16, 2020
1 parent c88d415 commit eec9e0f
Show file tree
Hide file tree
Showing 33 changed files with 166 additions and 348 deletions.
22 changes: 0 additions & 22 deletions .codeclimate.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: markbates
patreon: buffalo
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
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 ./...
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ generated/
bin/*
gin-bin
.idea/
go.*
cover.out
3 changes: 0 additions & 3 deletions .gometalinter.json

This file was deleted.

31 changes: 0 additions & 31 deletions .goreleaser.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .goreleaser.yml.plush

This file was deleted.

File renamed without changes.
50 changes: 6 additions & 44 deletions Makefile
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
2 changes: 1 addition & 1 deletion ast/ast.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ast

import "github.com/gobuffalo/plush/token"
import "github.com/gobuffalo/plush/v4/token"

type TokenAble struct {
token.Token
Expand Down
2 changes: 1 addition & 1 deletion ast/ast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ast
import (
"testing"

"github.com/gobuffalo/plush/token"
"github.com/gobuffalo/plush/v4/token"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion ast/return_statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ast
import (
"bytes"

"github.com/gobuffalo/plush/token"
"github.com/gobuffalo/plush/v4/token"
)

type ReturnStatement struct {
Expand Down
59 changes: 0 additions & 59 deletions azure-pipelines.yml

This file was deleted.

19 changes: 0 additions & 19 deletions azure-tests.yml

This file was deleted.

Loading

0 comments on commit eec9e0f

Please sign in to comment.