Skip to content

Commit

Permalink
Make dotenv tests serial since they define env vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Jan 16, 2025
1 parent 9423a07 commit 756eac9
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 36 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ jobs:
override: true

- name: Run tests
# since we're playing with environment variables
# and these are shared between executions, we need
# to run one test at a time
run: cargo test -- --test-threads=1
run: cargo test
242 changes: 211 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ anyhow = "1.0.94"
clap = { version = "4.5.26", features = ["derive"] }
dirs = "6.0.0"
libc = "0.2.169"

[dev-dependencies]
serial_test = "3.2.0"
tempfile = "3.14.0"
which = "7.0.1"

[profile.release]
opt-level = "z" # Optimize for size.
Expand Down
Loading

0 comments on commit 756eac9

Please sign in to comment.