mirror of
https://github.com/pymumu/smartdns.git
synced 2025-12-20 01:11:42 +08:00
action: add action for webui
This commit is contained in:
22
.github/workflows/webui.yml
vendored
Normal file
22
.github/workflows/webui.yml
vendored
Normal 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
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user