Skip to content

Jerome1337/goimports-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Imports Action

This action execute goimports command and return the output if the command fail.

Inputs

goimports-path

Path where your Go files are. This path will be used by goimports command to check imports of this files.

Default one is the repository root (./).

Outputs

goimports-output

The goimports output if the command fail.

For Example:

All following has imports not properly ordered
handlers/writer.go
services/writer/writerServices.go

Example Usage

uses: Jerome1337/[email protected]
with:
  goimports-path: './src'