File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 steps :
2222 - uses : actions/checkout@v5
2323 - uses : dtolnay/rust-toolchain@stable
24+
25+ - name : Setup D-Bus and Secret Service for local tests
26+ run : |
27+ sudo apt-get update
28+ sudo apt-get install -y gnome-keyring dbus-x11
29+
30+ # Start D-Bus session
31+ mkdir -p ~/.local/share/keyrings
32+ eval $(dbus-launch --sh-syntax)
33+ export DBUS_SESSION_BUS_ADDRESS
34+ echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> $GITHUB_ENV
35+
36+ # Initialize and unlock the default keyring
37+ printf '\n' | gnome-keyring-daemon --unlock --daemonize --login
38+
39+ # Give the service time to start
40+ sleep 3
2441 - name : Build client (async-std / native)
2542 run : |
2643 cargo build --manifest-path ./client/Cargo.toml --no-default-features --features async-std --features native_crypto
@@ -51,10 +68,10 @@ jobs:
5168
5269 - name : Test (native)
5370 run : |
54- cargo test --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features native_crypto
71+ cargo test --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features native_crypto,local_tests
5572 - name : Test (OpenSSL)
5673 run : |
57- cargo test --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features openssl_crypto
74+ cargo test --manifest-path ./client/Cargo.toml --no-default-features --features tokio --features openssl_crypto,local_tests
5875
5976 - name : Test Server (native)
6077 run : |
Original file line number Diff line number Diff line change @@ -36,18 +36,30 @@ jobs:
3636 with :
3737 tool : cargo-tarpaulin
3838
39- - name : Install system dependencies
39+ - name : Install system dependencies and setup D-Bus
4040 run : |
4141 sudo apt-get update
42- sudo apt-get install -y libssl-dev pkg-config
42+ sudo apt-get install -y libssl-dev pkg-config gnome-keyring dbus-x11
43+
44+ # Start D-Bus session
45+ mkdir -p ~/.local/share/keyrings
46+ eval $(dbus-launch --sh-syntax)
47+ export DBUS_SESSION_BUS_ADDRESS
48+ echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> $GITHUB_ENV
49+
50+ # Initialize and unlock the default keyring
51+ printf '\n' | gnome-keyring-daemon --unlock --daemonize --login
52+
53+ # Give the service time to start
54+ sleep 3
4355
4456 - name : Run coverage for native-tokio
4557 run : |
4658 mkdir -p coverage-raw
4759 cargo tarpaulin \
4860 --package oo7 \
4961 --lib \
50- --features "tracing,tokio" \
62+ --features "tracing,tokio,local_tests " \
5163 --ignore-panics \
5264 --out Lcov \
5365 --output-dir coverage-raw
5870 cargo tarpaulin \
5971 --package oo7 \
6072 --lib \
61- --features "tracing,async-std,openssl" \
73+ --features "tracing,async-std,openssl,local_tests " \
6274 --ignore-panics \
6375 --out Lcov \
6476 --output-dir coverage-raw
You can’t perform that action at this time.
0 commit comments