Skip to content

Commit d994e50

Browse files
authored
Validate missing imports in CI (#26)
1 parent 76a7587 commit d994e50

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker/docker-compose.2004.main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ services:
1414

1515
test:
1616
image: swift-http-structured-headers:20.04-main
17+
environment:
18+
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
1719

1820
shell:
1921
image: swift-http-structured-headers:20.04-main

docker/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232

3333
test:
3434
<<: *common
35-
command: /bin/bash -xcl "swift test --enable-test-discovery -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
35+
command: /bin/bash -xcl "swift test --enable-test-discovery -Xswiftc -warnings-as-errors $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
3636

3737

3838
# util

0 commit comments

Comments
 (0)