forked from shipwright-io/build
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 993 Bytes
/
sanity-checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
name: Sanity Checks
on:
push:
tags-ignore:
- '**'
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Sanity Checks
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install Tools
run: |
pushd $(mktemp -d)
go get github.com/gordonklaus/ineffassign
go get golang.org/x/lint/golint
go get github.com/client9/misspell/cmd/misspell
go get honnef.co/go/tools/cmd/staticcheck
popd
- name: Sanity Check (go vet)
run: make govet
- name: Sanity Check (ineffassign)
run: make ineffassign
- name: Sanity Check (golint)
run: make golint
- name: Sanity Check (misspell)
run: make misspell
- name: Sanity Check (staticcheck)
run: make staticcheck