forked from mirror/jwt
Added support for GitHub actions (#4)
This commit is contained in:
parent
dc14462fd5
commit
9e96e96514
|
@ -0,0 +1,27 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go: [1.14, 1.15, 1.16]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- name: Build
|
||||
run: |
|
||||
go vet ./...
|
||||
go test -v ./...
|
||||
go build ./...
|
Loading…
Reference in New Issue