-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (42 loc) · 1.15 KB
/
020_lint_and_test_go_client.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
name: Lint Go client
on:
push:
paths:
- clients/tfchain-client-go/**
workflow_dispatch:
jobs:
lint:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
submodules: "true"
sparse-checkout: clients/tfchain-client-go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: false
# cache-dependency-path: clients/tfchain-client-go/go.sum
id: go
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout 3m --verbose
working-directory: clients/tfchain-client-go
- name: staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: "latest"
install-go: false
working-directory: clients/tfchain-client-go
env:
GO111MODULE: on
- name: gofmt
uses: Jerome1337/[email protected]
with:
gofmt-path: './clients/tfchain-client-go'
gofmt-flags: "-l -d"