Makefile+github: add make fmt-check to check for formatting
This commit is contained in:
3 files changed
+26
-1
No files matched your search
@@ -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
|
||||
########################
|
||||
|
||||
Reference in new issue
Block a user