mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-05-01 16:17:55 +02:00
test: simplify
This commit is contained in:
@@ -113,23 +113,8 @@ jobs:
|
||||
run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::all
|
||||
working-directory: src-tauri
|
||||
|
||||
- name: Run Rust unit tests
|
||||
run: cargo test --lib && cargo test --test donut_proxy_integration && cargo test --test vpn_integration
|
||||
working-directory: src-tauri
|
||||
|
||||
- name: Run OpenVPN e2e test (Ubuntu only)
|
||||
if: matrix.os == 'ubuntu-22.04'
|
||||
shell: bash
|
||||
working-directory: src-tauri
|
||||
env:
|
||||
DONUTBROWSER_RUN_OPENVPN_E2E: "1"
|
||||
run: |
|
||||
CARGO_BIN="$(command -v cargo)"
|
||||
sudo --preserve-env=CARGO_HOME,RUSTUP_HOME,DONUTBROWSER_RUN_OPENVPN_E2E \
|
||||
"${CARGO_BIN}" test --test vpn_integration test_openvpn_traffic_flows_through_donut_proxy -- --nocapture
|
||||
|
||||
- name: Run Rust sync e2e tests
|
||||
run: node scripts/sync-test-harness.mjs
|
||||
- name: Run test suite
|
||||
run: pnpm test
|
||||
|
||||
- name: Run cargo audit security check
|
||||
run: cargo audit
|
||||
|
||||
Reference in New Issue
Block a user