jwt/.github/workflows/build.yml

34 lines
663 B
YAML
Raw Permalink Normal View History

2021-05-27 15:50:10 +03:00
name: build
on:
push:
branches:
- main
2021-05-27 15:50:10 +03:00
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
2021-05-27 15:50:10 +03:00
matrix:
go: [1.15, 1.16]
2021-05-27 15:50:10 +03:00
steps:
- name: Checkout
uses: actions/checkout@v2
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:
go-version: "${{ matrix.go }}"
2021-05-27 15:50:10 +03:00
- name: Build
run: |
go vet ./...
go test -v ./...
go build ./...
env:
GO111MODULE: auto
GOPATH: ${{ github.workspace }}