Skip to content

Commit

Permalink
a little mod cleanup (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates authored Dec 23, 2019
1 parent 33c5cf8 commit 4c2eec2
Show file tree
Hide file tree
Showing 36 changed files with 421 additions and 969 deletions.
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
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
release:
types:
- published

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
-
name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
-
name: Checkout Code
uses: actions/checkout@master
-
name: Run GoReleaser
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
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 ./...
58 changes: 36 additions & 22 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,45 @@
# Code generated by github.com/gobuffalo/release. DO NOT EDIT.
# Edit .goreleaser.yml.plush instead

builds:
-
goos:
- darwin
- linux
- windows
env:
- CGO_ENABLED=0
main: ./genny/main.go

-
main: ./genny/main.go
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X "github.com/gobuffalo/genny.Version={{.Tag}}"
goos:
- darwin
- linux
- windows
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 6
- 7
archives:
-
replacements:
'386': i386
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: 'checksums.txt'

name_template: checksums.txt
snapshot:
name_template: "{{ .Tag }}-next"

name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

brew:
github:
owner: gobuffalo
name: homebrew-tap

brews:
-
name: 'genny'
github:
owner: 'gobuffalo'
name: 'homebrew-tap'
install: |
bin.install "genny"
28 changes: 0 additions & 28 deletions .goreleaser.yml.plush

This file was deleted.

55 changes: 5 additions & 50 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,66 +1,21 @@
TAGS ?= ""
GO_BIN ?= "go"

install: packr
$(GO_BIN) install -tags ${TAGS} -v ./genny
cd ./genny && go install -tags ${TAGS} -v .
make tidy

tidy:
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
else
echo skipping go mod tidy
endif

deps:
$(GO_BIN) get -tags ${TAGS} -t ./...
make tidy
go mod tidy

build: packr
$(GO_BIN) build -v .
go build -v .
make tidy

test: packr
$(GO_BIN) test -cover -tags ${TAGS} ./...
make tidy

ci-deps: packr
$(GO_BIN) get -tags ${TAGS} -t ./...

ci-test: packr
$(GO_BIN) test -tags ${TAGS} -race ./...

lint:
go get github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run --enable-all
make tidy

update:
ifeq ($(GO111MODULE),on)
rm go.*
$(GO_BIN) mod init
$(GO_BIN) mod tidy
else
$(GO_BIN) get -u -tags ${TAGS}
endif
make test
make install
make tidy

release-test: packr
$(GO_BIN) test -tags ${TAGS} -race ./...
make tidy

release:
$(GO_BIN) get github.com/gobuffalo/release
make tidy
release -y -f version.go
go test -cover -tags ${TAGS} ./...
make tidy

packr:
$(GO_BIN) get github.com/gobuffalo/packr/v2/packr2
go get github.com/gobuffalo/packr/v2/packr2
packr2
make tidy



71 changes: 0 additions & 71 deletions azure-pipelines.yml

This file was deleted.

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

This file was deleted.

29 changes: 0 additions & 29 deletions depgen/ensure.go

This file was deleted.

28 changes: 0 additions & 28 deletions depgen/init.go

This file was deleted.

Loading

0 comments on commit 4c2eec2

Please sign in to comment.