mirror of
https://github.com/swift-server/swift-openapi-async-http-client.git
synced 2026-06-02 07:47:33 +00:00
Enable strict concurrency checking in CI
### Motivation
To further avoid concurrency bugs, enable complete concurrency checking in CI.
### Modifications
Added the compiler flag to the docker-compose scripts.
### Result
If a warning of this nature comes up, because we have warnings-as-errors, it'll fail CI.
### Test Plan
Locally built without any warnings with the flag enabled.
Reviewed by: glbrntt
Builds:
✔︎ pull request validation (5.8) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
https://github.com/swift-server/swift-openapi-async-http-client/pull/11
19 lines
437 B
YAML
19 lines
437 B
YAML
version: "3"
|
|
|
|
services:
|
|
runtime-setup:
|
|
image: &image swift-openapi-ahc:22.04-main
|
|
build:
|
|
args:
|
|
base_image: "swiftlang/swift:nightly-main-jammy"
|
|
|
|
test:
|
|
image: *image
|
|
environment:
|
|
- WARN_AS_ERROR_ARG=-Xswiftc -warnings-as-errors
|
|
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
|
|
- STRICT_CONCURRENCY_ARG=-Xswiftc -strict-concurrency=complete
|
|
|
|
shell:
|
|
image: *image
|