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 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 ]; }; } );