Skip to content

feat: add gci.yml and improve golangci.yml #1

feat: add gci.yml and improve golangci.yml

feat: add gci.yml and improve golangci.yml #1

Workflow file for this run

# Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
#
# This Source Code Form is subject to the terms of the MIT License.
# If a copy of the MIT was not distributed with this file,
# You can obtain one at https://github.com/gogf/gf.
# format go imports
name: Format Go Imports
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.23.4' # set the go version as needed
- name: Install gci
run: go install github.com/daixiang0/gci@latest
- name: Run gci
run: gci write ./...