diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index a549abe..7c465d7 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -34,7 +34,11 @@ jobs: - run: just install-packages # If the example doesn't compile the integration test will # be stuck. Check for compilation issues earlier to abort the job - - name: Check if the example compiles + - name: Check if the key-storage example compiles run: cargo check --example key-storage + - name: Check if the ssh-agent-client example compiles + run: cargo check --example ssh-agent-client + - name: Check if the ssh-agent-client-blocking example compiles + run: cargo check --example ssh-agent-client-blocking - name: Run integration tests run: ${{ matrix.script }} diff --git a/tests/sign-and-verify-win.bat b/tests/sign-and-verify-win.bat index af178cb..3d3c8ff 100755 --- a/tests/sign-and-verify-win.bat +++ b/tests/sign-and-verify-win.bat @@ -24,3 +24,10 @@ ssh-keygen -Y check-novalidate -n file -f agent.pub -s Cargo.toml.sig < Cargo.to if %errorlevel% neq 0 exit /b %errorlevel% rem del /F /Q Cargo.toml.sig id_rsa id_rsa.pub agent.pub + +rem run the examples +cargo run --example ssh-client-agent +if %errorlevel% neq 0 exit /b %errorlevel% + +cargo run --example ssh-client-agent-blocking +if %errorlevel% neq 0 exit /b %errorlevel% diff --git a/tests/sign-and-verify.sh b/tests/sign-and-verify.sh index 7754f80..6a9a55f 100755 --- a/tests/sign-and-verify.sh +++ b/tests/sign-and-verify.sh @@ -47,6 +47,10 @@ else # does not support RestrictDestination constraint (macos) ssh-add -t 2 id_rsa fi - + # clean up the only leftover rm -rf id_rsa id_rsa.pub id_rsa-cert.pub ca_user_key ca_user_key.pub + +# run the examples +cargo run --example ssh-client-agent +cargo run --example ssh-client-agent-blocking