-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (35 loc) · 1 KB
/
go-vet-lint-deps.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
name: go-vet-lint
on:
workflow_dispatch:
pull_request:
paths:
- "**.go"
- ".github/workflows/go-vet-lint-deps.yaml"
jobs:
build:
name: staticcheck
runs-on: ubuntu-latest
steps:
# Checkout your project with git
- name: Checkout
uses: actions/[email protected]
# Install Go on the VM running the action.
- uses: WillAbides/[email protected]
with:
go-version: "1.21.x"
- name: Perform staticcheck on codebase
uses: dominikh/[email protected]
with:
version: "2023.1.6"
install-go: false
- name: Install gofumpt
run: |
go install mvdan.cc/gofumpt@latest
- name: Run gofumpt command
run: |
gofumpt -l -d ./
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest