diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7be10e4 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 ./... diff --git a/go.mod b/go.mod index bc56991..ef95f28 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,4 @@ module github.com/golang-jwt/jwt go 1.14 +