mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 20:22:20 +08:00
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 <appleboy.tw@gmail.com>
This commit is contained in:
parent
733ee094fc
commit
94e13d1619
4
.github/workflows/gin.yml
vendored
4
.github/workflows/gin.yml
vendored
@ -75,7 +75,3 @@ jobs:
|
|||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
flags: ${{ matrix.os }},go-${{ matrix.go }},${{ matrix.test-tags }}
|
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 .)
|
|
||||||
|
@ -39,7 +39,6 @@ linters-settings:
|
|||||||
perfsprint:
|
perfsprint:
|
||||||
err-error: true
|
err-error: true
|
||||||
errorf: true
|
errorf: true
|
||||||
fiximports: true
|
|
||||||
int-conversion: true
|
int-conversion: true
|
||||||
sprintf1: true
|
sprintf1: true
|
||||||
strconcat: true
|
strconcat: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user