feat: add gci.yml and improve golangci.yml #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ./... |