Added support for GitHub actions (#4)

This commit is contained in:
Christian Banse 2021-05-27 14:50:10 +02:00 committed by GitHub
parent dc14462fd5
commit 9e96e96514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

27
.github/workflows/build.yml vendored Normal file
View File

@ -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 ./...

4
go.mod Normal file
View File

@ -0,0 +1,4 @@
module github.com/dgrijalva/jwt-go
go 1.14