-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix lint, markdown links, and build (#282)
Closes #269, #275, #279, #222 (b/c no longer relevant) Note: this PR removes code coverage. If we want it back, IMO it should be a separate workflow. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced new Makefile targets for linting and markdown link checking. - **Bug Fixes** - Improved test reliability by ensuring correct variable capture in test cases. - **Documentation** - Updated README files for clarity and accuracy, including installation instructions and resource links. - **Chores** - Updated Go version in project configuration. - Streamlined workflow configurations for building and testing processes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
8 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ run: | |
|
||
linters: | ||
enable: | ||
- exportloopref | ||
- copyloopvar | ||
- gofumpt | ||
- misspell | ||
- revive | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## lint: Run all linters; golangci-lint, markdownlint. | ||
lint: | ||
@echo "--> Running golangci-lint" | ||
@golangci-lint run | ||
@echo "--> Running markdownlint" | ||
@markdownlint --config .markdownlint.yaml '**/*.md' | ||
.PHONY: lint | ||
|
||
## markdown-link-check: Check all markdown links. | ||
markdown-link-check: | ||
@echo "--> Running markdown-link-check" | ||
@find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check | ||
.PHONY: markdown-link-check |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/celestiaorg/nmt | ||
|
||
go 1.21 | ||
go 1.23 | ||
|
||
require ( | ||
github.com/gogo/protobuf v1.3.2 | ||
|
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
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