-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate from Earthly to Just for build and workflow automation
This change replaces Earthly with Just by removing Earthfiles and introducing a Justfile. Benefits include streamlining the dependency management, simplifying workflow automation, and improving build process readability. Build and CI workflows (e.g., pre-commit, tests, linting) have been adapted to utilize Just commands, ensuring consistency across development processes.
- Loading branch information
Showing
6 changed files
with
53 additions
and
160 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
set dotenv-load | ||
|
||
default: | ||
@just --list | ||
|
||
pre-commit: tidy lint generate export-docs-events earthly | ||
|
||
earthly: | ||
@earthly --no-output +pre-commit | ||
|
||
[group('lint')] | ||
lint: | ||
@golangci-lint run --fix --build-tags it --timeout 5m | ||
@cd {{justfile_directory()}}/tools/generator && golangci-lint run --fix --build-tags it --timeout 5m | ||
@cd {{justfile_directory()}}/deployments/pulumi && golangci-lint run --fix --build-tags it --timeout 5m | ||
|
||
tidy: | ||
@go mod tidy | ||
@cd {{justfile_directory()}}/tools/generator && go mod tidy | ||
@cd {{justfile_directory()}}/deployments/pulumi && go mod tidy | ||
|
||
generate: | ||
@go generate ./... | ||
|
||
export-docs-events: | ||
@go run . docs events --write-dir docs/events | ||
|
||
tests: | ||
@go test -race -covermode=atomic \ | ||
-coverpkg=github.com/formancehq/ledger/internal/... \ | ||
-coverpkg=github.com/formancehq/ledger/pkg/events/... \ | ||
-coverpkg=github.com/formancehq/ledger/pkg/accounts/... \ | ||
-coverpkg=github.com/formancehq/ledger/pkg/assets/... \ | ||
-coverpkg=github.com/formancehq/ledger/cmd/... \ | ||
-coverprofile coverage.txt \ | ||
-tags it \ | ||
./... | ||
@cat coverage.txt | grep -v debug.go | grep -v "/machine/" > coverage2.txt | ||
@mv coverage2.txt coverage.txt |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
mockgen | ||
gomarkdoc | ||
jdk11 | ||
just | ||
]; | ||
}; | ||
}); | ||
|
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