Skip to content

Commit 8b71d1f

Browse files
committed
CI/integration-tests: Add clippy checks for integration tests
Run cargo clippy on tests workspace to ensure there aren't any warnings. Signed-off-by: Matej Hrica <[email protected]>
1 parent 0a691a2 commit 8b71d1f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/integration_tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,29 @@ jobs:
1515
- name: Add musl target
1616
run: rustup target add x86_64-unknown-linux-musl
1717

18+
- name: Build and install libkrun to test prefix
19+
run: make test-prefix
20+
21+
- name: Clippy (test_cases guest)
22+
run: |
23+
cd tests
24+
cargo clippy --locked -p test_cases --features guest -- -D warnings
25+
26+
- name: Clippy (test_cases host)
27+
run: |
28+
cd tests
29+
PKG_CONFIG_PATH="$(realpath ../test-prefix/lib64/pkgconfig/)" LD_LIBRARY_PATH="$(realpath ../test-prefix/lib64/)" cargo clippy --locked -p test_cases --features host -- -D warnings
30+
31+
- name: Clippy (runner)
32+
run: |
33+
cd tests
34+
PKG_CONFIG_PATH="$(realpath ../test-prefix/lib64/pkgconfig/)" LD_LIBRARY_PATH="$(realpath ../test-prefix/lib64/)" cargo clippy --locked -p runner -- -D warnings
35+
36+
- name: Clippy (guest-agent)
37+
run: |
38+
cd tests
39+
cargo clippy --locked --target x86_64-unknown-linux-musl -p guest-agent -- -D warnings
40+
1841
- name: Enable KVM group perms
1942
run: |
2043
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules

0 commit comments

Comments
 (0)