Skip to content

Commit

Permalink
chore: use github action (#528)
Browse files Browse the repository at this point in the history
* use github action
  • Loading branch information
pei0804 authored Sep 25, 2019
1 parent efcfb3d commit e0c8bbb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on: push
jobs:
test:
strategy:
matrix:
go: [ '1.10.x', '1.11.x', '1.12.x' ]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: deps
run: make deps
- name: static program analysis
run: |
export PATH=$PATH:$(go env GOPATH)/bin # https://github.com/actions/setup-go/issues/14
make fmt-check lint vet
- name: build
run: make build
- name: test
run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ deps:

.PHONY: devel-deps
devel-deps:
GO111MODULE=off $(GOGET) -v ${u} \
GO111MODULE=off $(GOGET) -v -u \
golang.org/x/lint/golint \
github.com/swaggo/swag/cmd/swag \
github.com/swaggo/swag/gen
Expand Down

0 comments on commit e0c8bbb

Please sign in to comment.