Skip to content

Commit 37255b7

Browse files
Build IntegrationTest package as part of CI pipeline (#56)
### Motivation We have an package in a subdirectory in this repo that we can be used as an integration test to gate changes to the various repos in Swift OpenAPI project, including the runtime package. This will likely be implemented by shallow cloning this repo in the pull request pipelines of other projects and running a script, using `swift package edit` to override the dependency on the package being tested, and building the integration test package. ### Modifications - Simplify the integration test package location and name. - Add a CI script that runs the integration test with a package override. - Run this script as part of the soundness pipeline. ### Result On each pull request, the integration test package will be built with the changes proposed in the pull request. ### Test Plan The CI pipeline for this PR will run the integration test because it's been added to the soundness script, which is run as part of an existing CI pipeline. I have also validated this locally: ```console ❯ docker-compose -f docker/docker-compose.yaml run --build soundness ... ** Running /code/scripts/check-for-broken-symlinks.sh... ** Checking for broken symlinks... ** ✅ Found 0 symlinks. ** Running /code/scripts/check-for-unacceptable-language.sh... ** Checking for unacceptable language... ** ✅ Found no unacceptable language. ** Running /code/scripts/check-license-headers.sh... ** ✅ Found no files with missing license header. ** Running /code/scripts/run-swift-format.sh... ** ✅ Ran swift-format with no errors. ** Running /code/scripts/check-for-docc-warnings.sh... ... ** ✅ Generated documentation with no warnings. ** Running /code/scripts/run-integration-test.sh... ** Checking required executables... ... Build complete! (42.53s) ** ✅ Successfully built integration test package. ** ✅ All soundness check(s) passed. ``` ### Notes This PR adds the integration test to the soundness script, but we probably want to split this out into its own pipeline. --------- Signed-off-by: Si Beaumont <[email protected]>
1 parent 02924d1 commit 37255b7

20 files changed

+57
-3
lines changed
File renamed without changes.

IntegrationTests/Simple/Package.swift renamed to IntegrationTest/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import PackageDescription
1616

1717
let package = Package(
18-
name: "Simple",
18+
name: "swift-openapi-integration-test",
1919
platforms: [
2020
.macOS(.v13)
2121
],
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)