Skip to content

How do you make a test that doesn't fail if dotenv() doesn't find the .env file? #62

@valentinegb

Description

@valentinegb

In my Rust program, I have a .env file for my environmental variables when I run the tests on my computer. However, I also run the tests via a GitHub workflow, where I have a repository secret defined. Currently, these tests all fail in the workflow because there is no .env file present. How should I resolve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions