Skip to content

Commit a10b926

Browse files
authored
Merge pull request #25 from ngrok/josh/fix-doc-tests
add openssl to LD_LIBRARY_PATH for doc tests
2 parents 3f725b1 + 10165fd commit a10b926

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ jobs:
4141
command: clippy
4242
args: --all-targets --all-features --workspace -- -D warnings
4343

44+
test-docs:
45+
name: Test Docs
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: jrobsonchase/direnv-action@v0.7
50+
- uses: ./.github/workflows/rust-cache
51+
- uses: actions-rs/cargo@v1
52+
env:
53+
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }}
54+
with:
55+
command: test
56+
args: --doc
57+
4458
test-nix:
4559
name: Test Nix
4660
runs-on: ubuntu-latest

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
inputs.fenix.overlays.default
2424
];
2525
};
26+
lib = nixpkgs.lib;
2627
toolchain = pkgs.fenix.complete.withComponents [
2728
"cargo"
2829
"clippy"
@@ -61,6 +62,7 @@
6162
cargo-udeps
6263
];
6364
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
65+
LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.openssl ];
6466
};
6567
}
6668
);

0 commit comments

Comments
 (0)