From 9e96e9651418c89a66324119998e652bb2e47f93 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Thu, 27 May 2021 14:50:10 +0200 Subject: [PATCH] Added support for GitHub actions (#4) --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ go.mod | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 go.mod 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 new file mode 100644 index 0000000..0695d35 --- /dev/null +++ b/go.mod @@ -0,0 +1,4 @@ +module github.com/dgrijalva/jwt-go + +go 1.14 +