Makefile+github: add make fmt-check to check for formatting

This commit is contained in:
yyforyongyu committed 2022-08-23 22:10:27 +08:00
1 parent 0735522194
commit 859c5e5da4
3 files changed
+26 -1

No files matched your search

+18
View File
@@ -32,6 +32,24 @@ env:
GO_VERSION: 1.18.2
jobs:
########################
# format code
########################
fmt-check:
name: check code format
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: setup go ${{ env.GO_VERSION }}
uses: actions/setup-go@v3
with:
go-version: '${{ env.GO_VERSION }}'
- name: fmt
run: make fmt-check
########################
# RPC and mobile compilation check
########################