Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added env read support #127

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0xObsidian
Copy link

This PR introduces environment configuration support across the SDK and fixes an issue where client tests were being skipped.

Description

  • Added scans for .env in current and parent directories
  • Added clean getters for all environment variables
  • Introduced graceful fallback to system environment variables
  • Added comprehensive test coverage for the introduced feature

Testing the introduced feat

Clone this pr branch and from the repo root, run:

go test -v ./config/env -run TestEnv

This commit introduces environment configuration support across
the SDK and fixes an issue where client tests were being skipped.

Description
-----------
- Added scans for .env in current and parent directories
- Added clean getters for all environment variables
- Introduced graceful fallback to system environment variables
- Added comprehensive test coverage for the introduced feature

Testing
-------
From the repo root, run:
```
go test -v ./config/env -run TestEnv
```
Description
-----------
- Replaced init with setupClientTest/setupTest functions
- Updated test calls with new setup functions

Build verified with:
```
make lint && make format
```
Test coverage unchanged
@0xObsidian
Copy link
Author

@calbera
Hi, feel free to let me know if you have any questions regarding this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant