Skip to content

Commit e648ef0

Browse files
committed
fix: harden runtime configuration and verification
1 parent ef91497 commit e648ef0

11 files changed

Lines changed: 818 additions & 243 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "17 2 * * *"
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
18+
cache: npm
19+
- uses: dtolnay/rust-toolchain@stable
20+
- name: Install Linux dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev patchelf
24+
- run: npm ci
25+
- run: npx playwright install --with-deps chrome
26+
- run: npm run build
27+
- run: npm run test:all
28+
29+
windows-core:
30+
runs-on: windows-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: 22
36+
- uses: dtolnay/rust-toolchain@stable
37+
- run: cargo test --manifest-path src-tauri/Cargo.toml
38+
- if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
39+
run: npm run test:integration
40+
41+
live-integration:
42+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version: 22
49+
- uses: dtolnay/rust-toolchain@stable
50+
- name: Install Linux dependencies
51+
run: |
52+
sudo apt-get update
53+
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev patchelf
54+
- run: npm run test:integration

‎package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"build": "tsc && vite build",
99
"preview": "vite preview",
1010
"test": "vitest run",
11+
"test:scripts": "node --test scripts/*.test.mjs",
1112
"test:ui": "playwright test",
12-
"test:integration": "cargo test --manifest-path src-tauri/Cargo.toml core_workflow_applies_verifies_persists_and_restores_git_routing -- --ignored --nocapture",
13-
"test:all": "npm test && cargo test --manifest-path src-tauri/Cargo.toml && npm run test:ui",
13+
"test:integration": "cargo test --manifest-path src-tauri/Cargo.toml -- --ignored --nocapture --test-threads=1",
14+
"test:all": "npm test && npm run test:scripts && cargo test --manifest-path src-tauri/Cargo.toml && npm run test:ui",
1415
"build:windows": "tauri build --target x86_64-pc-windows-msvc",
1516
"tauri": "tauri"
1617
},

‎src-tauri/Cargo.lock‎

Lines changed: 163 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src-tauri/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ aes-gcm = "0.10"
2121
base64 = "0.22"
2222
chrono = { version = "0.4", features = ["serde"] }
2323
parking_lot = "0.12"
24+
reqwest = { version = "0.13", default-features = false, features = ["blocking", "native-tls"] }
2425
serde = { version = "1", features = ["derive"] }
2526
serde_json = "1"
2627
socket2 = "0.6"

0 commit comments

Comments
 (0)