Enable strict concurrency checking in CI (#11)

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
This commit is contained in:
Honza Dvorsky
2023-08-11 16:02:13 +02:00
committed by GitHub
parent 762f5e50ef
commit 95bb2f8456
5 changed files with 12 additions and 2 deletions
@@ -15,8 +15,15 @@ import OpenAPIRuntime
import AsyncHTTPClient
import NIOCore
import NIOHTTP1
import Foundation
import NIOFoundationCompat
#if canImport(Darwin)
import Foundation
#else
@preconcurrency import struct Foundation.URL
import struct Foundation.URLComponents
import struct Foundation.Data
import protocol Foundation.LocalizedError
#endif
/// A client transport that performs HTTP operations using the HTTPClient type
/// provided by the AsyncHTTPClient library.