jwt/.github/workflows/build.yml

38 lines
755 B
YAML
Raw Normal View History

2021-05-27 15:50:10 +03:00
name: build
on:
push:
branches:
- master
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.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
- 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 ./...
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.29