Skip to content

Commit 5914666

Browse files
committed
Add format check to CI pipeline
1 parent 7e153c6 commit 5914666

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ on:
99
workflow_call:
1010

1111
jobs:
12+
GoFmt:
13+
runs-on: ubuntu-latest
14+
name: Check format with go fmt
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
- name: Set up Go env
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: '1.18'
22+
- name: Run go fmt
23+
run: |
24+
go version
25+
go fmt ./...
26+
1227
Test:
1328
runs-on: ubuntu-latest
1429
strategy:

0 commit comments

Comments
 (0)