Skip to content

Commit

Permalink
fix: coverage (#639)
Browse files Browse the repository at this point in the history
* 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 <maxence@maireaux.fr>
  • Loading branch information
gfyrag and flemzord authored Jan 6, 2025
1 parent 58854fe commit 32f0f96
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
./...
Expand Down

0 comments on commit 32f0f96

Please sign in to comment.