Skip to content

Commit 8c12274

Browse files
ci: Add compatibility test pipeline
1 parent f69daeb commit 8c12274

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@ jobs:
3636
matrix_linux_5_8_enabled: false
3737
matrix_linux_command: "apt-get update -yq && apt-get install -yq jq && ./scripts/run-integration-test.sh"
3838

39+
compatibility-test:
40+
name: Compatibility test
41+
runs-on: ubuntu-latest
42+
container:
43+
image: swift:latest
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v4
47+
with:
48+
persist-credentials: false
49+
- name: Run OpenAPI document compatibilty test
50+
env:
51+
SWIFT_OPENAPI_COMPATIBILITY_TEST_ENABLE: "true"
52+
SWIFT_OPENAPI_COMPATIBILITY_TEST_SKIP_BUILD: "true"
53+
SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER: OpenAPIGeneratorReferenceTests.CompatibilityTest
54+
SWIFT_OPENAPI_COMPATIBILITY_TEST_PARALLEL_CODEGEN: "true"
55+
SWIFT_OPENAPI_COMPATIBILITY_TEST_NUM_BUILD_JOBS: 1
56+
run: swift test --filter ${SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER}
57+
3958
example-packages:
4059
name: Example packages
4160
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main

0 commit comments

Comments
 (0)