Skip to content

Commit b1e04b9

Browse files
committed
Run SSH agent clients as part of the CI
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
1 parent 5853f4f commit b1e04b9

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/misc.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ jobs:
3434
- run: just install-packages
3535
# If the example doesn't compile the integration test will
3636
# be stuck. Check for compilation issues earlier to abort the job
37-
- name: Check if the example compiles
37+
- name: Check if the key-storage example compiles
3838
run: cargo check --example key-storage
39+
- name: Check if the ssh-agent-client example compiles
40+
run: cargo check --example ssh-agent-client
41+
- name: Check if the ssh-agent-client-blocking example compiles
42+
run: cargo check --example ssh-agent-client-blocking
3943
- name: Run integration tests
4044
run: ${{ matrix.script }}

tests/sign-and-verify-win.bat

+7
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ ssh-keygen -Y check-novalidate -n file -f agent.pub -s Cargo.toml.sig < Cargo.to
2424
if %errorlevel% neq 0 exit /b %errorlevel%
2525

2626
rem del /F /Q Cargo.toml.sig id_rsa id_rsa.pub agent.pub
27+
28+
rem run the examples
29+
cargo run --example ssh-agent-client
30+
if %errorlevel% neq 0 exit /b %errorlevel%
31+
32+
cargo run --example ssh-agent-client-blocking
33+
if %errorlevel% neq 0 exit /b %errorlevel%

tests/sign-and-verify.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ else
4747
# does not support RestrictDestination constraint (macos)
4848
ssh-add -t 2 id_rsa
4949
fi
50-
50+
5151
# clean up the only leftover
5252
rm -rf id_rsa id_rsa.pub id_rsa-cert.pub ca_user_key ca_user_key.pub
53+
54+
# run the examples
55+
cargo run --example ssh-agent-client
56+
cargo run --example ssh-agent-client-blocking

0 commit comments

Comments
 (0)