From 32f0f9679d4e9a08fbc2c92443833985abd52935 Mon Sep 17 00:00:00 2001 From: Ragot Geoffrey Date: Mon, 6 Jan 2025 18:16:18 +0100 Subject: [PATCH] fix: coverage (#639) * fix: coverage * fix(ci): add EARTHLY_SECRETS for improved build compatibility Added EARTHLY_SECRETS environment variable to streamline integration with Earthly by consolidating critical secrets, improving CI builds. * fix(ci): remove redundant EARTHLY_SECRETS and use explicit secrets Removed unused EARTHLY_SECRETS from GitHub Actions for simplification. Updated Earthly command in Justfile to explicitly pass required secrets, enhancing security and maintainability in CI workflows. --------- Co-authored-by: Maxence Maireaux --- Justfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Justfile b/Justfile index 8157d63df..ff3eff5cf 100644 --- a/Justfile +++ b/Justfile @@ -6,7 +6,7 @@ default: pre-commit: generate earthly tidy lint export-docs-events earthly: - @earthly --no-output +pre-commit + @earthly --no-output --secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY +pre-commit lint: @golangci-lint run --fix --build-tags it --timeout 5m @@ -26,11 +26,7 @@ export-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/... \ + -coverpkg=github.com/formancehq/ledger/internal/...,github.com/formancehq/ledger/pkg/events/...,github.com/formancehq/ledger/pkg/accounts/...,github.com/formancehq/ledger/pkg/assets/...,github.com/formancehq/ledger/cmd/... \ -coverprofile coverage.txt \ -tags it \ ./...