Skip to content

Commit

Permalink
move to go mod and actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtazz committed Feb 15, 2020
1 parent 82dc200 commit 0a369b0
Show file tree
Hide file tree
Showing 22 changed files with 300 additions and 249 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,23 @@
name: CI
on: push
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code
uses: actions/checkout@master
with:
fetch-depth: 1

- name: Run tests
run: |
make test
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -6,7 +6,7 @@ export GO15VENDOREXPERIMENT = 1

# variable definitions
NAME := pkgr
DESC := experimental linter for Makefiles
DESC := FreeBSD pkg creation tool
PREFIX ?= usr/local
VERSION := $(shell git describe --tags --always --dirty)
GOVERSION := $(shell go version)
Expand All @@ -18,6 +18,7 @@ PROJECT_URL := "https://github.com/mrtazz/$(NAME)"
LDFLAGS := -X 'main.version=$(VERSION)' \
-X 'main.builder=$(BUILDER)' \
-X 'main.goversion=$(GOVERSION)'
GOFLAGS := -mod=vendor

PACKAGES := $(shell find ./* -type d | grep -v vendor)

Expand Down Expand Up @@ -54,7 +55,7 @@ all: $(TARGETS) $(MAN_TARGETS)

# development tasks
test:
go test -v $$(go list ./... | grep -v /vendor/)
go test $(GOFLAGS) -v ./...

coverage:
@echo "mode: set" > cover.out
Expand Down
12 changes: 12 additions & 0 deletions go.mod
@@ -0,0 +1,12 @@
module github.com/mrtazz/pkgr

go 1.13

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/ghodss/yaml v1.0.1-0.20180820084758-c7ce16629ff4
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/testify v1.1.4-0.20160615092844-d77da356e56a
github.com/ulikunitz/xz v0.5.5-0.20180703112113-636d36a76670
gopkg.in/yaml.v2 v2.0.0-20171116090243-287cf08546ab // indirect
)
12 changes: 12 additions & 0 deletions go.sum
@@ -0,0 +1,12 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/ghodss/yaml v1.0.1-0.20180820084758-c7ce16629ff4 h1:PaTU+9BARuIOAz1ixvps39DJjfq/SxOj3axzIlh7nFo=
github.com/ghodss/yaml v1.0.1-0.20180820084758-c7ce16629ff4/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.1.4-0.20160615092844-d77da356e56a h1:UWu0XgfW9PCuyeZYNe2eGGkDZjooQKjVQqY/+d/jYmc=
github.com/stretchr/testify v1.1.4-0.20160615092844-d77da356e56a/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/ulikunitz/xz v0.5.5-0.20180703112113-636d36a76670 h1:6PLtEcT0fPi0PfnTVKdFiLZYEOWaDokxmKrsLDkBGNY=
github.com/ulikunitz/xz v0.5.5-0.20180703112113-636d36a76670/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8=
gopkg.in/yaml.v2 v2.0.0-20171116090243-287cf08546ab h1:yZ6iByf7GKeJ3gsd1Dr/xaj1DyJ//wxKX1Cdh8LhoAw=
gopkg.in/yaml.v2 v2.0.0-20171116090243-287cf08546ab/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
6 changes: 4 additions & 2 deletions vendor/github.com/davecgh/go-spew/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

194 changes: 94 additions & 100 deletions vendor/github.com/davecgh/go-spew/spew/bypass.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/davecgh/go-spew/spew/common.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions vendor/github.com/davecgh/go-spew/spew/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion vendor/github.com/davecgh/go-spew/spew/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a369b0

Please sign in to comment.