repogen/.github/workflows/build.yml

38 lines
627 B
YAML
Raw Normal View History

2021-01-16 06:34:06 +00:00
name: build
2021-01-15 15:29:46 +00:00
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Install dependencies
run: go get -u golang.org/x/lint/golint
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Vet & Lint
run: |
go vet ./...
golint ./...
2021-01-19 10:20:26 +00:00
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.35.2