Skip to content

Commit cc4634d

Browse files
committed
.github/workflows: Introduce a sanity check that runs static linting/style checks
Introduce the ci/sanity GH workflow: - Runs `make vendor` - Runs `make lint` - Ensures that both of those targets don't produce a diff when running `make diff`
1 parent f822e43 commit cc4634d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/sanity.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
paths:
9+
- '**'
10+
- '!doc/**'
11+
12+
jobs:
13+
sanity:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-go@v2
18+
with:
19+
go-version: '~1.16'
20+
- name: Install goimports
21+
run: go install golang.org/x/tools/cmd/goimports@latest
22+
- name: Run sanity checks
23+
run: make vendor && make lint && make diff

0 commit comments

Comments
 (0)