Skip to content

Commit f90cda4

Browse files
authored
Validate missing imports in CI (#615)
1 parent 5e3e58d commit f90cda4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docker/docker-compose.2004.main.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ services:
1010

1111
test:
1212
image: async-http-client:20.04-main
13-
environment: []
13+
environment:
14+
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
1415
#- SANITIZER_ARG=--sanitize=thread
1516

1617
shell:

docker/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828

2929
test:
3030
<<: *common
31-
command: /bin/bash -xcl "swift test --parallel -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-}"
31+
command: /bin/bash -xcl "swift test --parallel -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-}"
3232

3333
# util
3434

0 commit comments

Comments
 (0)