2021-05-27 15:50:10 +03:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-05-29 13:05:28 +03:00
|
|
|
- main
|
2021-05-27 15:50:10 +03:00
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
2021-05-28 16:35:34 +03:00
|
|
|
fail-fast: false
|
2021-05-27 15:50:10 +03:00
|
|
|
matrix:
|
2021-05-28 16:35:34 +03:00
|
|
|
go: [1.11, 1.12, 1.13, 1.14, 1.15, 1.16]
|
2021-05-27 15:50:10 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-06-04 17:47:42 +03:00
|
|
|
with:
|
|
|
|
path: src/github.com/golang-jwt/jwt
|
2021-05-27 15:50:10 +03:00
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-05-28 16:35:34 +03:00
|
|
|
go-version: "${{ matrix.go }}"
|
2021-05-27 15:50:10 +03:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
go vet ./...
|
|
|
|
go test -v ./...
|
|
|
|
go build ./...
|
2021-06-04 17:47:42 +03:00
|
|
|
env:
|
|
|
|
GO111MODULE: auto
|
|
|
|
GOPATH: ${{ github.workspace }}
|