Skip to content

Commit

Permalink
chore(ci): add lint imports ci action (#3677)
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss authored Aug 23, 2024
1 parent bd8dffe commit 87e2802
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,24 @@ jobs:
version: v1.59
skip-cache: true

lint-imports:
needs: [setup]
name: Lint Imports
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}

- name: install goimports-reviser
run: go install -v github.com/incu6us/goimports-reviser/v3@latest

- name: lint imports
run: make lint-imports

go_mod_tidy_check:
needs: [setup]
name: Go Mod Tidy Check
Expand Down
4 changes: 2 additions & 2 deletions share/eds/blockstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import (
"fmt"
"os"

share_ipld "github.com/celestiaorg/celestia-node/share/ipld"

bstore "github.com/ipfs/boxo/blockstore"
"github.com/ipfs/boxo/datastore/dshelp"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/namespace"
ipld "github.com/ipfs/go-ipld-format"

share_ipld "github.com/celestiaorg/celestia-node/share/ipld"
)

var enableFixedDataSize = os.Getenv("CELESTIA_CONST_DATA_SIZE") == "1"
Expand Down

0 comments on commit 87e2802

Please sign in to comment.