action: add action for webui

This commit is contained in:
Nick Peng
2025-03-09 15:44:36 +08:00
parent c3137ad382
commit 5fd4744543
2 changed files with 23 additions and 1 deletions

22
.github/workflows/webui.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: WebUI CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: stable
- name: test
run: |
EXTRA_CFLAGS=-fPIC make -C plugin/smartdns-ui test -j8

View File

@@ -471,7 +471,7 @@ fn test_rest_api_settings() {
let settings = http_api_msg::api_msg_parse_key_value(&body);
assert!(settings.is_ok());
let settings = settings.unwrap();
assert_eq!(settings.len(), 2);
assert_eq!(settings.len(), 7);
assert_eq!(settings["key1"], "value1");
}