Skip to content

Commit

Permalink
github actions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates authored Jan 31, 2020
1 parent 5fb44b6 commit bea4c0f
Show file tree
Hide file tree
Showing 9 changed files with 895 additions and 213 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
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 ./...
3 changes: 0 additions & 3 deletions .gometalinter.json

This file was deleted.

File renamed without changes.
46 changes: 1 addition & 45 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,46 +1,2 @@
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

build:
packr
$(GO_BIN) 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 ./...

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

10 changes: 6 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module github.com/gobuffalo/mw-basicauth

go 1.13

require (
github.com/gobuffalo/buffalo v0.13.2
github.com/gobuffalo/httptest v1.0.2
github.com/pkg/errors v0.8.0
github.com/stretchr/testify v1.2.2
github.com/gobuffalo/buffalo v0.15.4
github.com/gobuffalo/httptest v1.4.0
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.4.0
)
945 changes: 862 additions & 83 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit bea4c0f

Please sign in to comment.