-
Notifications
You must be signed in to change notification settings - Fork 703
32 lines (27 loc) · 1.04 KB
/
ci.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
name: Testing
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
- name: Install deps
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
export GOPATH="$RUNNER_WORKSPACE"
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/client9/misspell/cmd/misspell@latest
- name: Static check
run: |
$(exit $(go fmt ./... | wc -l))
go vet -modfile=go_test.mod ./...
GOFLAGS="-mod=mod -modfile=go_test.mod" staticcheck ./...
find . -type f -name "*.go" | xargs misspell -error -locale US
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: jetstream