Validate missing imports in CI

This commit is contained in:
Cory Benfield 2022-08-16 09:07:01 +01:00
parent dabef818d3
commit c5211dbf0e
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ services:
test:
image: swift-nio-extras:20.04-main
environment:
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
shell:
image: swift-nio-extras:20.04-main

View File

@ -28,7 +28,7 @@ services:
test:
<<: *common
command: /bin/bash -xcl "cat /etc/lsb-release && swift -version && swift test -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-}"
command: /bin/bash -xcl "cat /etc/lsb-release && swift -version && swift test -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
# util