jwt/.github/workflows/build.yml

41 lines
836 B
YAML

name: build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: reviewdog/action-staticcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
filter_mode: nofilter
fail_on_error: true
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: [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 ./...