From f267b9ac783669c9b96b246da1ae643f2d1109f1 Mon Sep 17 00:00:00 2001 From: Josh Robson Chase Date: Mon, 14 Oct 2024 15:48:05 -0400 Subject: [PATCH 1/2] add openssl to LD_LIBRARY_PATH for doc tests --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 3a8f85d..0a27bed 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ inputs.fenix.overlays.default ]; }; + lib = nixpkgs.lib; toolchain = pkgs.fenix.complete.withComponents [ "cargo" "clippy" @@ -61,6 +62,7 @@ cargo-udeps ]; RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}"; + LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.openssl ]; }; } ); From 10165fd56e7a4fbd0b836695cf026b3adb347732 Mon Sep 17 00:00:00 2001 From: Josh Robson Chase Date: Mon, 14 Oct 2024 15:49:22 -0400 Subject: [PATCH 2/2] run doc tests in CI --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4836543..13a3474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,20 @@ jobs: command: clippy args: --all-targets --all-features --workspace -- -D warnings + test-docs: + name: Test Docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: jrobsonchase/direnv-action@v0.7 + - uses: ./.github/workflows/rust-cache + - uses: actions-rs/cargo@v1 + env: + NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }} + with: + command: test + args: --doc + test-nix: name: Test Nix runs-on: ubuntu-latest