Skip to content

Commit

Permalink
actions (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates authored Dec 23, 2019
1 parent 05e6097 commit 727dc9e
Show file tree
Hide file tree
Showing 14 changed files with 117 additions and 347 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: ./main.go

-
main: ./main.go
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X "github.com/markbates/refresh.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: markbates
name: homebrew-tap

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

This file was deleted.

26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

44 changes: 6 additions & 38 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,46 +1,14 @@
TAGS ?= "sqlite"
GO_BIN ?= go

install:
packr
$(GO_BIN) install -v ./.

deps:
$(GO_BIN) get github.com/gobuffalo/release
$(GO_BIN) get github.com/gobuffalo/packr/packr
$(GO_BIN) get -tags ${TAGS} -t ./...
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif
packr2
go install -v ./.

build:
packr
$(GO_BIN) build -v .
packr2
go build -v .

test:
packr
$(GO_BIN) test -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
packr
make test
make install
ifeq ($(GO111MODULE),on)
$(GO_BIN) mod tidy
endif

release-test:
$(GO_BIN) test -tags ${TAGS} -race ./...
packr2
go test -tags ${TAGS} ./...

release:
release -y -f version.go
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.

12 changes: 5 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
module github.com/markbates/refresh

go 1.12
go 1.13

require (
github.com/fatih/color v1.7.0
github.com/fsnotify/fsnotify v1.4.7
github.com/gobuffalo/envy v1.7.0
github.com/gobuffalo/events v1.4.0
github.com/gobuffalo/genny v0.3.0
github.com/gobuffalo/packr/v2 v2.5.1
github.com/markbates/grift v1.1.0
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/markbates/grift v1.5.0
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-isatty v0.0.11 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v0.0.5
gopkg.in/yaml.v2 v2.2.2
gopkg.in/yaml.v2 v2.2.7
)
Loading

0 comments on commit 727dc9e

Please sign in to comment.