From 94e13d161908c12026e9c48898b99c89ed80751d Mon Sep 17 00:00:00 2001 From: appleboy Date: Tue, 18 Mar 2025 22:40:15 +0800 Subject: [PATCH] ci: refactor GitHub actions and update GolangCI configuration - Remove the formatting step from the GitHub action workflow - Disable the `fiximports` setting in the GolangCI configuration Signed-off-by: appleboy --- .github/workflows/gin.yml | 4 ---- .golangci.yml | 1 - 2 files changed, 5 deletions(-) diff --git a/.github/workflows/gin.yml b/.github/workflows/gin.yml index 095dea6d..99bfcdad 100644 --- a/.github/workflows/gin.yml +++ b/.github/workflows/gin.yml @@ -75,7 +75,3 @@ jobs: uses: codecov/codecov-action@v4 with: flags: ${{ matrix.os }},go-${{ matrix.go }},${{ matrix.test-tags }} - - - name: Format - if: matrix.go-version == '1.22.x' - run: diff -u <(echo -n) <(gofmt -d .) diff --git a/.golangci.yml b/.golangci.yml index ccb26684..891ccbb4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -39,7 +39,6 @@ linters-settings: perfsprint: err-error: true errorf: true - fiximports: true int-conversion: true sprintf1: true strconcat: true