Skip to content

Commit d6838f1

Browse files
committed
ci: add dependent crate
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.
1 parent f403c35 commit d6838f1

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ jobs:
124124
if: matrix.platform.cross == false
125125
run: cargo build --locked --workspace --all-targets
126126

127+
- name: Check dependent crate
128+
if: matrix.platform.cross == false # TODO: unsure if this would matter
129+
run: cargo check
130+
working-directory: test_dependent_crate
131+
127132
- name: Run interop DHT tests with go-ipfs
128133
if: matrix.platform.host == 'ubuntu-latest' && matrix.platform.cross == false
129134
run: cargo test --features=test_go_interop dht

test_dependent_crate/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Cargo.lock
2+
target/

test_dependent_crate/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "test_dependent_crate"
3+
version = "0.1.0"
4+
edition = "2018"
5+
description = "Crate plays the part of external dependent crate, see #458"
6+
7+
[dependencies]
8+
ipfs = { path = "../" }
9+
10+
# Prevent this from interfering with workspaces
11+
[workspace]
12+
members = ["."]

test_dependent_crate/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("It doesn't matter what's here; this crate is meant to be just `cargo check`'d");
3+
}

0 commit comments

Comments
 (0)