| 
1 | 1 | name: PR  | 
2 | 2 | 
 
  | 
3 | 3 | on:  | 
4 |  | -    pull_request:  | 
5 |  | -      types: [opened, reopened, synchronize]  | 
 | 4 | +  pull_request:  | 
 | 5 | +   types: [opened, reopened, synchronize]  | 
6 | 6 | 
 
  | 
7 | 7 | jobs:  | 
8 |  | -    soundness:  | 
9 |  | -        name: Soundness  | 
10 |  | -        uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main  | 
11 |  | -        with:  | 
12 |  | -            api_breakage_check_enabled: false  | 
13 |  | -            license_header_check_project_name: "SwiftOpenAPIGenerator"  | 
14 |  | -            yamllint_check_enabled: false  | 
 | 8 | +  soundness:  | 
 | 9 | +    name: Soundness  | 
 | 10 | +    uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main  | 
 | 11 | +    with:  | 
 | 12 | +      api_breakage_check_enabled: false  | 
 | 13 | +      license_header_check_project_name: "SwiftOpenAPIGenerator"  | 
 | 14 | +      yamllint_check_enabled: false  | 
15 | 15 | 
 
  | 
16 |  | -    unit-tests:  | 
17 |  | -        name: Unit tests  | 
18 |  | -        uses: apple/swift-nio/.github/workflows/unit_tests.yml@main  | 
19 |  | -        with:  | 
20 |  | -            linux_5_9_arguments_override: "--explicit-target-dependency-import-check error"  | 
21 |  | -            linux_5_10_arguments_override: "--explicit-target-dependency-import-check error"  | 
22 |  | -            linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"  | 
23 |  | -            linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error"  | 
24 |  | -            linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"  | 
 | 16 | +  unit-tests:  | 
 | 17 | +    name: Unit tests  | 
 | 18 | +    uses: apple/swift-nio/.github/workflows/unit_tests.yml@main  | 
 | 19 | +    with:  | 
 | 20 | +      linux_5_9_arguments_override: "--explicit-target-dependency-import-check error"  | 
 | 21 | +      linux_5_10_arguments_override: "--explicit-target-dependency-import-check error"  | 
 | 22 | +      linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"  | 
 | 23 | +      linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error"  | 
 | 24 | +      linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"  | 
25 | 25 | 
 
  | 
26 |  | -    integration-test:  | 
27 |  | -        name: Integration test  | 
28 |  | -        uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main  | 
29 |  | -        with:  | 
30 |  | -            name: "Integration test"  | 
31 |  | -            matrix_linux_command: "apt-get update -yq && apt-get install -yq jq && SWIFT_OPENAPI_GENERATOR_REPO_URL=file://${GITHUB_WORKSPACE} ./scripts/run-integration-test.sh"  | 
32 |  | -            matrix_linux_nightly_main_enabled: false  | 
 | 26 | +  integration-test:  | 
 | 27 | +    name: Integration test  | 
 | 28 | +    uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main  | 
 | 29 | +    with:  | 
 | 30 | +      name: "Integration test"  | 
 | 31 | +      matrix_linux_command: "apt-get update -yq && apt-get install -yq jq && SWIFT_OPENAPI_GENERATOR_REPO_URL=file://${GITHUB_WORKSPACE} ./scripts/run-integration-test.sh"  | 
 | 32 | +      matrix_linux_nightly_main_enabled: false  | 
33 | 33 | 
 
  | 
34 |  | -    compatibility-test:  | 
35 |  | -      name: Compatibility test  | 
36 |  | -      runs-on: ubuntu-latest  | 
37 |  | -      container:  | 
38 |  | -          image: swift:latest  | 
39 |  | -      steps:  | 
40 |  | -          - name: Checkout repository  | 
41 |  | -            uses: actions/checkout@v4  | 
42 |  | -            with:  | 
43 |  | -                persist-credentials: false  | 
44 |  | -          - name: Run OpenAPI document compatibilty test  | 
45 |  | -            env:  | 
46 |  | -              SWIFT_OPENAPI_COMPATIBILITY_TEST_ENABLE: "true"  | 
47 |  | -              SWIFT_OPENAPI_COMPATIBILITY_TEST_SKIP_BUILD: "true"  | 
48 |  | -              SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER: OpenAPIGeneratorReferenceTests.CompatibilityTest  | 
49 |  | -              SWIFT_OPENAPI_COMPATIBILITY_TEST_PARALLEL_CODEGEN: "true"  | 
50 |  | -              SWIFT_OPENAPI_COMPATIBILITY_TEST_NUM_BUILD_JOBS: 1  | 
51 |  | -            run: swift test --filter ${SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER}  | 
 | 34 | +  compatibility-test:  | 
 | 35 | +   name: Compatibility test  | 
 | 36 | +   runs-on: ubuntu-latest  | 
 | 37 | +   container:  | 
 | 38 | +     image: swift:latest  | 
 | 39 | +   steps:  | 
 | 40 | +     - name: Checkout repository  | 
 | 41 | +      uses: actions/checkout@v4  | 
 | 42 | +      with:  | 
 | 43 | +        persist-credentials: false  | 
 | 44 | +     - name: Run OpenAPI document compatibilty test  | 
 | 45 | +      env:  | 
 | 46 | +       SWIFT_OPENAPI_COMPATIBILITY_TEST_ENABLE: "true"  | 
 | 47 | +       SWIFT_OPENAPI_COMPATIBILITY_TEST_SKIP_BUILD: "true"  | 
 | 48 | +       SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER: OpenAPIGeneratorReferenceTests.CompatibilityTest  | 
 | 49 | +       SWIFT_OPENAPI_COMPATIBILITY_TEST_PARALLEL_CODEGEN: "true"  | 
 | 50 | +       SWIFT_OPENAPI_COMPATIBILITY_TEST_NUM_BUILD_JOBS: 1  | 
 | 51 | +      run: swift test --filter ${SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER}  | 
52 | 52 | 
 
  | 
53 |  | -    example-packages:  | 
54 |  | -        name: Example packages  | 
55 |  | -        uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main  | 
56 |  | -        with:  | 
57 |  | -            name: "Example packages"  | 
58 |  | -            matrix_linux_command: "./scripts/test-examples.sh"  | 
59 |  | -            matrix_linux_nightly_main_enabled: false  | 
 | 53 | +  example-packages:  | 
 | 54 | +    name: Example packages  | 
 | 55 | +    uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main  | 
 | 56 | +    with:  | 
 | 57 | +      name: "Example packages"  | 
 | 58 | +      matrix_linux_command: "./scripts/test-examples.sh"  | 
 | 59 | +      matrix_linux_nightly_main_enabled: false  | 
60 | 60 | 
 
  | 
61 | 61 |   macos-tests:  | 
62 | 62 |     name: macOS tests  | 
 | 
0 commit comments