Skip to content

Commit

Permalink
Use +nightly with test/check-all-features
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacorbellini committed Apr 9, 2024
1 parent 607d49c commit 679a541
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
- name: Build and Test
run: |
export TEST_DIR=$RUNNER_TEMP
cargo test-all-features --release --verbose
cargo +nightly test-all-features --release --verbose
- name: Lint
run: |
cargo check-all-features --all-targets
cargo +nightly check-all-features --all-targets
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ rand = { version = "0.8" }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.28", features = ["fs", "user"] }

[dev-dependencies]
tempfile = { version = "3.10.1" }

[features]
default = ["unnamed-tmpfile"]

Expand Down
8 changes: 8 additions & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,11 @@ fn creates_named_temporary_files() -> Result<()> {
verify_temporary_file_name("foo", temp_file_name);
file.commit()
}

#[test]
fn named_temp_file() -> Result<()> {
let file = tempfile::NamedTempFile::new()?;
let path = file.path();
let atomic = AtomicWriteFile::open(path)?;
atomic.commit()
}

0 comments on commit 679a541

Please sign in to comment.