...
1name: build
2
3on:
4 push:
5 branches:
6 - main
7 pull_request:
8 types: [opened, synchronize, reopened]
9
10jobs:
11 build:
12 runs-on: ubuntu-latest
13 strategy:
14 fail-fast: false
15 matrix:
16 go: [1.15, 1.16]
17 steps:
18 - name: Checkout
19 uses: actions/checkout@v2
20 with:
21 path: src/github.com/golang-jwt/jwt
22 - name: Setup Go
23 uses: actions/setup-go@v2
24 with:
25 go-version: "${{ matrix.go }}"
26 - name: Build
27 run: |
28 go vet ./...
29 go test -v ./...
30 go build ./...
31 env:
32 GO111MODULE: auto
33 GOPATH: ${{ github.workspace }}
View as plain text