Skip to content

Commit 909fddf

Browse files
Check GUI tests in CI
1 parent 68db0d7 commit 909fddf

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/clippy_mq.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ jobs:
108108
- name: Test metadata collection
109109
run: cargo collect-metadata
110110

111+
- name: Install npm
112+
uses: actions/setup-node@v3
113+
with:
114+
node-version: 22
115+
- name: Install browser-ui-test
116+
run: npm install
117+
- name: Test clippy lints page
118+
run: cargo test --test gui
119+
env:
120+
FORCE_GUI: 1
121+
111122
integration_build:
112123
runs-on: ubuntu-latest
113124

tests/gui/runner.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ fn main() {
7474

7575
let current_dir = current_dir().expect("failed to retrieve current directory");
7676
let html_file = current_dir.join("util/gh-pages/index.html");
77-
assert!(html_file.is_file(), "Missing `{html_file:?}`, run `cargo collect-metadata` first");
77+
assert!(
78+
html_file.is_file(),
79+
"Missing `{html_file:?}`, run `cargo collect-metadata` first"
80+
);
7881
let html_file = format!("file://{}", html_file.display());
7982

8083
let mut command = Command::new("npx");

0 commit comments

Comments
 (0)