From 3ca7e3019938063cc1499dd5e9007c5f2bc99272 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Thu, 15 Dec 2022 16:56:06 +0800 Subject: [PATCH] github: move `fmt-check` into `lint` --- .github/workflows/main.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75ef60991..5614a387a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,23 +32,6 @@ env: GO_VERSION: 1.19.2 jobs: - ######################## - # format code - ######################## - fmt-check: - name: check code format - runs-on: ubuntu-latest - steps: - - name: git checkout - uses: actions/checkout@v3 - - - id: setup - name: Setup go env - uses: ./.github/actions/setup-go - - - name: fmt - run: make fmt-check - ######################## # RPC and mobile compilation check ######################## @@ -119,6 +102,9 @@ jobs: name: Setup go env uses: ./.github/actions/setup-go + - name: check code format + run: make fmt-check + - name: lint run: GOGC=50 make lint