Skip to content

Commit 8187bc7

Browse files
authored
Create 070_lint_and_test_go_bridge.yaml
1 parent f59ddc4 commit 8187bc7

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Lint Go bridge
2+
3+
on:
4+
push:
5+
paths:
6+
- bridge/tfchain_bridge/**
7+
workflow_dispatch:
8+
9+
jobs:
10+
lint:
11+
name: lint
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
steps:
15+
- name: Check out code into the Go module directory
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: "true"
19+
sparse-checkout: |
20+
clients/tfchain-client-go
21+
bridge/tfchain_bridge
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version: "1.20"
27+
cache: false
28+
# cache-dependency-path: bridge/tfchain_bridge/go.sum
29+
id: go
30+
31+
- name: golangci-lint
32+
uses: golangci/[email protected]
33+
with:
34+
args: --timeout 3m --verbose
35+
working-directory: bridge/tfchain_bridge
36+
37+
- name: staticcheck
38+
uses: dominikh/[email protected]
39+
with:
40+
version: "2022.1.3"
41+
working-directory: bridge/tfchain_bridge
42+
env:
43+
GO111MODULE: on
44+
45+
- name: gofmt
46+
uses: Jerome1337/[email protected]
47+
with:
48+
gofmt-flags: "-l -d"

0 commit comments

Comments
 (0)