Validate missing imports in CI (#171)

This commit is contained in:
Cory Benfield 2022-08-16 09:19:37 +01:00 committed by GitHub
parent dabef818d3
commit 9697a611c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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