Skip to content

Commit

Permalink
ci: add dependent crate
Browse files Browse the repository at this point in the history
there is an issue reported in comments of rs-ipfs#458 that it happens on any
dependent crate, without any code. hoping that this will work as a test
case so that we wont introduce such again.
  • Loading branch information
koivunej committed Aug 2, 2021
1 parent f403c35 commit d6838f1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ jobs:
if: matrix.platform.cross == false
run: cargo build --locked --workspace --all-targets

- name: Check dependent crate
if: matrix.platform.cross == false # TODO: unsure if this would matter
run: cargo check
working-directory: test_dependent_crate

- name: Run interop DHT tests with go-ipfs
if: matrix.platform.host == 'ubuntu-latest' && matrix.platform.cross == false
run: cargo test --features=test_go_interop dht
Expand Down
2 changes: 2 additions & 0 deletions test_dependent_crate/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cargo.lock
target/
12 changes: 12 additions & 0 deletions test_dependent_crate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "test_dependent_crate"
version = "0.1.0"
edition = "2018"
description = "Crate plays the part of external dependent crate, see #458"

[dependencies]
ipfs = { path = "../" }

# Prevent this from interfering with workspaces
[workspace]
members = ["."]
3 changes: 3 additions & 0 deletions test_dependent_crate/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("It doesn't matter what's here; this crate is meant to be just `cargo check`'d");
}

0 comments on commit d6838f1

Please sign in to comment.