From 02b85509da97fe468b4591de0c90b50ac807e895 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Fri, 12 Jul 2024 12:07:43 +0200 Subject: [PATCH 01/15] [GHA] Configure license check --- .github/workflows/pull_request.yml | 3 ++- .licenseignore | 39 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .licenseignore diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a104686a..4198d574 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,4 +9,5 @@ jobs: name: Checks uses: apple/swift-nio/.github/workflows/reusable_pull_request.yml@main with: - benchmarks_linux_enabled: false \ No newline at end of file + benchmarks_linux_enabled: false + license_header_check_project_name: "SwiftOpenAPIGenerator" diff --git a/.licenseignore b/.licenseignore new file mode 100644 index 00000000..a954f36c --- /dev/null +++ b/.licenseignore @@ -0,0 +1,39 @@ +.gitignore +.licenseignore +.spi.yml +.swift-format +.github/* +CODE_OF_CONDUCT.md +CONTRIBUTING.md +CONTRIBUTORS.txt +LICENSE.txt +NOTICE.txt +Package.swift +Package.resolved +README.md +SECURITY.md +scripts/unacceptable-language.txt +Tests/PetstoreConsumerTests/Generated +Tests/OpenAPIGeneratorReferenceTests/Resources/ReferenceSources/* +docker/* +**/*.docc/* +**/.gitignore +**/Package.swift +**/Package.resolved +**/README.md +**/openapi.yaml +**/openapi.yml +**/petstore.yaml +**/openapi-generator-config.yaml +**/openapi-generator-config.yml +**/docker-compose.yaml +**/docker/* +**/.dockerignore +Plugins/OpenAPIGenerator/PluginsShared +Plugins/OpenAPIGeneratorCommand/PluginsShared +Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp.* +Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp/Assets.xcassets/* +Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp/Preview* +Examples/**/Generated* +**/Makefile +**/*.html \ No newline at end of file From fa72f86456f36b7b9ac5cfb94a705ad02fefac71 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Fri, 12 Jul 2024 12:12:43 +0200 Subject: [PATCH 02/15] Use #!/bin/bash --- .github/workflows/pull_request.yml | 1 + scripts/check-for-broken-symlinks.sh | 2 +- scripts/check-for-docc-warnings.sh | 2 +- scripts/check-for-unacceptable-language.sh | 2 +- scripts/check-license-headers.sh | 4 ++-- scripts/generate-contributors-list.sh | 2 +- scripts/run-integration-test.sh | 2 +- scripts/run-swift-format.sh | 2 +- scripts/soundness.sh | 2 +- scripts/test-examples.sh | 2 +- 10 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 4198d574..d3219d76 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,4 +10,5 @@ jobs: uses: apple/swift-nio/.github/workflows/reusable_pull_request.yml@main with: benchmarks_linux_enabled: false + unacceptable_language_check_enabled: false license_header_check_project_name: "SwiftOpenAPIGenerator" diff --git a/scripts/check-for-broken-symlinks.sh b/scripts/check-for-broken-symlinks.sh index 4df8c92b..82cadb49 100644 --- a/scripts/check-for-broken-symlinks.sh +++ b/scripts/check-for-broken-symlinks.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project diff --git a/scripts/check-for-docc-warnings.sh b/scripts/check-for-docc-warnings.sh index 88215d49..b9453355 100644 --- a/scripts/check-for-docc-warnings.sh +++ b/scripts/check-for-docc-warnings.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project diff --git a/scripts/check-for-unacceptable-language.sh b/scripts/check-for-unacceptable-language.sh index 94f79dfc..759afa66 100644 --- a/scripts/check-for-unacceptable-language.sh +++ b/scripts/check-for-unacceptable-language.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project diff --git a/scripts/check-license-headers.sh b/scripts/check-license-headers.sh index 2061f591..c409ba5b 100644 --- a/scripts/check-license-headers.sh +++ b/scripts/check-license-headers.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project @@ -87,7 +87,7 @@ for FILE_PATH in "${PATHS_TO_CHECK_FOR_LICENSE[@]}"; do case "${FILE_EXTENSION}" in swift) EXPECTED_FILE_HEADER=$(sed -e 's|@@|//|g' <<<"${EXPECTED_FILE_HEADER_TEMPLATE}") ;; yml) EXPECTED_FILE_HEADER=$(sed -e 's|@@|##|g' <<<"${EXPECTED_FILE_HEADER_TEMPLATE}") ;; - sh) EXPECTED_FILE_HEADER=$(cat <(echo '#!/usr/bin/env bash') <(sed -e 's|@@|##|g' <<<"${EXPECTED_FILE_HEADER_TEMPLATE}")) ;; + sh) EXPECTED_FILE_HEADER=$(cat <(echo '#!/bin/bash') <(sed -e 's|@@|##|g' <<<"${EXPECTED_FILE_HEADER_TEMPLATE}")) ;; *) fatal "Unsupported file extension for file (exclude or update this script): ${FILE_PATH}" ;; esac EXPECTED_FILE_HEADER_LINECOUNT=$(wc -l <<<"${EXPECTED_FILE_HEADER}") diff --git a/scripts/generate-contributors-list.sh b/scripts/generate-contributors-list.sh index c733766f..272f788d 100644 --- a/scripts/generate-contributors-list.sh +++ b/scripts/generate-contributors-list.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project diff --git a/scripts/run-integration-test.sh b/scripts/run-integration-test.sh index fae9d366..61378588 100644 --- a/scripts/run-integration-test.sh +++ b/scripts/run-integration-test.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project diff --git a/scripts/run-swift-format.sh b/scripts/run-swift-format.sh index 2f0f95f2..beebc2e6 100755 --- a/scripts/run-swift-format.sh +++ b/scripts/run-swift-format.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project diff --git a/scripts/soundness.sh b/scripts/soundness.sh index 45ee0f30..2d15984c 100755 --- a/scripts/soundness.sh +++ b/scripts/soundness.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project diff --git a/scripts/test-examples.sh b/scripts/test-examples.sh index 62d12135..fb90d572 100644 --- a/scripts/test-examples.sh +++ b/scripts/test-examples.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftOpenAPIGenerator open source project From cd741278e6ef483cf049409a3fa2baa258b98a8b Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Wed, 24 Jul 2024 12:24:33 +0200 Subject: [PATCH 03/15] [GHA] Update to the latest workflows # Motivation I made more progress on the reusable workflows in NIO so it's even easier to adopt them. # Modification This PR fixes up the renamed workflow references and adds unit tests and cxx-interop checks. # Result Green GH actions CI --- .github/workflows/pull_request.yml | 35 +++++++++++++++++++++--------- scripts/check-license-headers.sh | 1 + 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d3219d76..f85c8f6f 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,14 +1,29 @@ name: Pull Request on: - pull_request: - types: [opened, reopened, synchronize, ready_for_review] - + pull_request: + types: [opened, reopened, synchronize] + jobs: - call-reusable-pull-request-workflow: - name: Checks - uses: apple/swift-nio/.github/workflows/reusable_pull_request.yml@main - with: - benchmarks_linux_enabled: false - unacceptable_language_check_enabled: false - license_header_check_project_name: "SwiftOpenAPIGenerator" + soundness: + name: Soundness + uses: apple/swift-nio/.github/workflows/soundness.yml@main + with: + license_header_check_project_name: "SwiftOpenAPIGenerator" + unacceptable_language_check_enabled: false + + unit-tests: + name: Checks + uses: apple/swift-nio/.github/workflows/unit_tests.yml@main + with: + linux_5_8_enabled: false + linux_5_9_arguments_override: "--explicit-target-dependency-import-check error" + linux_5_10_arguments_override: "--explicit-target-dependency-import-check error" + linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" + linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" + + cxx-interop: + name: Checks + uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main + with: + linux_5_8_enabled: false diff --git a/scripts/check-license-headers.sh b/scripts/check-license-headers.sh index c409ba5b..094b15cd 100644 --- a/scripts/check-license-headers.sh +++ b/scripts/check-license-headers.sh @@ -42,6 +42,7 @@ read -ra PATHS_TO_CHECK_FOR_LICENSE <<< "$( \ ":(exclude).gitignore" \ ":(exclude).spi.yml" \ ":(exclude).swift-format" \ + ":(exclude).licenseignore" \ ":(exclude).github/*" \ ":(exclude)CODE_OF_CONDUCT.md" \ ":(exclude)CONTRIBUTING.md" \ From e181199db0f20b56df0c11126b73ffbe53f74cb5 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Wed, 24 Jul 2024 16:03:32 +0200 Subject: [PATCH 04/15] Add swiftformatignore file --- .licenseignore | 1 + .swiftformatignore | 4 ++++ scripts/check-license-headers.sh | 1 + 3 files changed, 6 insertions(+) create mode 100644 .swiftformatignore diff --git a/.licenseignore b/.licenseignore index a954f36c..2b80c90c 100644 --- a/.licenseignore +++ b/.licenseignore @@ -1,5 +1,6 @@ .gitignore .licenseignore +.swiftformatignore .spi.yml .swift-format .github/* diff --git a/.swiftformatignore b/.swiftformatignore new file mode 100644 index 00000000..cff6e77d --- /dev/null +++ b/.swiftformatignore @@ -0,0 +1,4 @@ +Tests/OpenAPIGeneratorReferenceTests/Resources +Sources/swift-openapi-generator/Documentation.docc +Examples/**/Generated/* +Examples/**/GeneratedSources/* \ No newline at end of file diff --git a/scripts/check-license-headers.sh b/scripts/check-license-headers.sh index 094b15cd..3cbaf95f 100644 --- a/scripts/check-license-headers.sh +++ b/scripts/check-license-headers.sh @@ -43,6 +43,7 @@ read -ra PATHS_TO_CHECK_FOR_LICENSE <<< "$( \ ":(exclude).spi.yml" \ ":(exclude).swift-format" \ ":(exclude).licenseignore" \ + ":(exclude).swiftformatignore" \ ":(exclude).github/*" \ ":(exclude)CODE_OF_CONDUCT.md" \ ":(exclude)CONTRIBUTING.md" \ From 828b992662eeb5072b26f2d79cb7dfca977d439d Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Wed, 24 Jul 2024 16:20:00 +0200 Subject: [PATCH 05/15] Integration and example tests --- .github/workflows/pull_request.yml | 27 ++++++++++++++++++++++++--- scripts/run-integration-test.sh | 0 scripts/test-examples.sh | 0 3 files changed, 24 insertions(+), 3 deletions(-) mode change 100644 => 100755 scripts/run-integration-test.sh mode change 100644 => 100755 scripts/test-examples.sh diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index f85c8f6f..faf893fd 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,4 +1,4 @@ -name: Pull Request +name: PR on: pull_request: @@ -11,9 +11,10 @@ jobs: with: license_header_check_project_name: "SwiftOpenAPIGenerator" unacceptable_language_check_enabled: false + shell_check_enabled: false unit-tests: - name: Checks + name: Unit tests uses: apple/swift-nio/.github/workflows/unit_tests.yml@main with: linux_5_8_enabled: false @@ -23,7 +24,27 @@ jobs: linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" cxx-interop: - name: Checks + name: Cxx interop uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main with: linux_5_8_enabled: false + + integration-tests: + name: Integration Tests + uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main + with: + name: "Integration tests" + matrix_linux_5_8_enabled: false + matrix_linux_command: "apt-get update -y -q && apt-get install -y -q jq && ./scripts/run-integration-test.sh" + + example-tests: + name: Example Tests + uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main + with: + name: "Example tests" + matrix_linux_5_8_enabled: false + matrix_linux_command: "./scripts/test-examples.sh" + + swift-6-language-mode: + name: Swift 6 Language Mode + uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main diff --git a/scripts/run-integration-test.sh b/scripts/run-integration-test.sh old mode 100644 new mode 100755 diff --git a/scripts/test-examples.sh b/scripts/test-examples.sh old mode 100644 new mode 100755 From f69daebe704ea36c8a2f2d9164d0d69f26409b63 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Fri, 13 Sep 2024 14:04:38 +0100 Subject: [PATCH 06/15] ci: Update YAML, enable things, cleanup --- .github/workflows/pull_request.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index faf893fd..1d9bb4ee 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,9 +9,14 @@ jobs: name: Soundness uses: apple/swift-nio/.github/workflows/soundness.yml@main with: + api_breakage_check_enabled: true + broken_symlink_check_enabled: true + docs_check_enabled: true + format_check_enabled: true + license_header_check_enabled: true license_header_check_project_name: "SwiftOpenAPIGenerator" - unacceptable_language_check_enabled: false - shell_check_enabled: false + shell_check_enabled: true + unacceptable_language_check_enabled: true unit-tests: name: Unit tests @@ -23,25 +28,19 @@ jobs: linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" - cxx-interop: - name: Cxx interop - uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main - with: - linux_5_8_enabled: false - - integration-tests: - name: Integration Tests + integration-test: + name: Integration test uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main with: - name: "Integration tests" + name: "Integration test" matrix_linux_5_8_enabled: false - matrix_linux_command: "apt-get update -y -q && apt-get install -y -q jq && ./scripts/run-integration-test.sh" + matrix_linux_command: "apt-get update -yq && apt-get install -yq jq && ./scripts/run-integration-test.sh" - example-tests: - name: Example Tests + example-packages: + name: Example packages uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main with: - name: "Example tests" + name: "Example packages" matrix_linux_5_8_enabled: false matrix_linux_command: "./scripts/test-examples.sh" From 8c12274abbf68056acd97824a0e829185c8b220e Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Mon, 16 Sep 2024 19:41:45 +0100 Subject: [PATCH 07/15] ci: Add compatibility test pipeline --- .github/workflows/pull_request.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1d9bb4ee..09329d36 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -36,6 +36,25 @@ jobs: matrix_linux_5_8_enabled: false matrix_linux_command: "apt-get update -yq && apt-get install -yq jq && ./scripts/run-integration-test.sh" + compatibility-test: + name: Compatibility test + runs-on: ubuntu-latest + container: + image: swift:latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Run OpenAPI document compatibilty test + env: + SWIFT_OPENAPI_COMPATIBILITY_TEST_ENABLE: "true" + SWIFT_OPENAPI_COMPATIBILITY_TEST_SKIP_BUILD: "true" + SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER: OpenAPIGeneratorReferenceTests.CompatibilityTest + SWIFT_OPENAPI_COMPATIBILITY_TEST_PARALLEL_CODEGEN: "true" + SWIFT_OPENAPI_COMPATIBILITY_TEST_NUM_BUILD_JOBS: 1 + run: swift test --filter ${SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER} + example-packages: name: Example packages uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main From 4a96ad59c0d4899136aa1c634f819b01a121671c Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Fri, 13 Sep 2024 17:18:07 +0100 Subject: [PATCH 08/15] Add docs to CONTRIBUTING.md on running workflows locally --- CONTRIBUTING.md | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5338c26d..da1a1d4b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,13 +54,40 @@ A good patch is: 3. Documented, adding API documentation as needed to cover new functions and properties. 4. Accompanied by a great commit message, using our commit message template. -### Run `./scripts/soundness.sh` +### Run CI checks locally -The scripts directory contains a [soundness.sh script](https://github.com/apple/swift-openapi-generator/blob/main/scripts/soundness.sh) -that enforces additional checks, like license headers and formatting style. +You can run the Github Actions workflows locally using +[act](https://github.com/nektos/act). To run all the jobs that run on a pull +request, use the following command: -Please make sure to `./scripts/soundness.sh` before pushing a change upstream, otherwise it is likely the PR validation will fail -on minor changes such as a missing `self.` or similar formatting issues. +``` +% act pull_request +``` + +To run just a single job, use `workflow_call -j `, and specify the inputs +the job expects. For example, to run just shellcheck: + +``` +% act workflow_call -j soundness --input shell_check_enabled=true +``` + +To bind-mount the working directory to the container, rather than a copy, use +`--bind`. For example, to run just the formatting, and have the results +reflected in your working directory: + +``` +% act --bind workflow_call -j soundness --input format_check_enabled=true +``` + +If you'd like `act` to always run with certain flags, these can be be placed in +an `.actrc` file either in the current working directory or your home +directory, for example: + +``` +--container-architecture=linux/amd64 +--remote-name upstream +--action-offline-mode +``` For frequent contributors, we recommend adding the script as a [git pre-push hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks), which you can do via executing the following command in the project root directory: From 39dd2dbde09048a38a80f264dd57ae9029c1ebf1 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Fri, 13 Sep 2024 17:31:39 +0100 Subject: [PATCH 09/15] Remove in-repo soundness scripts --- scripts/check-for-broken-symlinks.sh | 37 ------- scripts/check-for-docc-warnings.sh | 40 ------- scripts/check-for-unacceptable-language.sh | 37 ------- scripts/check-license-headers.sh | 115 --------------------- scripts/run-swift-format.sh | 50 --------- scripts/soundness.sh | 55 ---------- scripts/unacceptable-language.txt | 15 --- 7 files changed, 349 deletions(-) delete mode 100644 scripts/check-for-broken-symlinks.sh delete mode 100644 scripts/check-for-docc-warnings.sh delete mode 100644 scripts/check-for-unacceptable-language.sh delete mode 100644 scripts/check-license-headers.sh delete mode 100755 scripts/run-swift-format.sh delete mode 100755 scripts/soundness.sh delete mode 100644 scripts/unacceptable-language.txt diff --git a/scripts/check-for-broken-symlinks.sh b/scripts/check-for-broken-symlinks.sh deleted file mode 100644 index 82cadb49..00000000 --- a/scripts/check-for-broken-symlinks.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftOpenAPIGenerator open source project -## -## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## -set -euo pipefail - -log() { printf -- "** %s\n" "$*" >&2; } -error() { printf -- "** ERROR: %s\n" "$*" >&2; } -fatal() { error "$@"; exit 1; } - -CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -REPO_ROOT="$(git -C "${CURRENT_SCRIPT_DIR}" rev-parse --show-toplevel)" - -log "Checking for broken symlinks..." -NUM_BROKEN_SYMLINKS=0 -while read -r -d '' file; do - if ! test -e "${REPO_ROOT}/${file}"; then - error "Broken symlink: ${file}" - ((NUM_BROKEN_SYMLINKS++)) - fi -done < <(git -C "${REPO_ROOT}" ls-files -z) - -if [ "${NUM_BROKEN_SYMLINKS}" -gt 0 ]; then - fatal "❌ Found ${NUM_BROKEN_SYMLINKS} symlinks." -fi - -log "✅ Found 0 symlinks." diff --git a/scripts/check-for-docc-warnings.sh b/scripts/check-for-docc-warnings.sh deleted file mode 100644 index b9453355..00000000 --- a/scripts/check-for-docc-warnings.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftOpenAPIGenerator open source project -## -## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## - -set -euo pipefail - -log() { printf -- "** %s\n" "$*" >&2; } -error() { printf -- "** ERROR: %s\n" "$*" >&2; } -fatal() { error "$@"; exit 1; } - -log "Checking required environment variables..." -test -n "${DOCC_TARGET:-}" || fatal "DOCC_TARGET unset" - -CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -REPO_ROOT="$(git -C "${CURRENT_SCRIPT_DIR}" rev-parse --show-toplevel)" - -swift package --package-path "${REPO_ROOT}" plugin generate-documentation \ - --product "${DOCC_TARGET}" \ - --analyze \ - --level detailed \ - --warnings-as-errors \ - && DOCC_PLUGIN_RC=$? || DOCC_PLUGIN_RC=$? - -if [ "${DOCC_PLUGIN_RC}" -ne 0 ]; then - fatal "❌ Generating documentation produced warnings and/or errors." - exit "${DOCC_PLUGIN_RC}" -fi - -log "✅ Generated documentation with no warnings." diff --git a/scripts/check-for-unacceptable-language.sh b/scripts/check-for-unacceptable-language.sh deleted file mode 100644 index 759afa66..00000000 --- a/scripts/check-for-unacceptable-language.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftOpenAPIGenerator open source project -## -## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## -set -euo pipefail - -log() { printf -- "** %s\n" "$*" >&2; } -error() { printf -- "** ERROR: %s\n" "$*" >&2; } -fatal() { error "$@"; exit 1; } - -CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -REPO_ROOT="$(git -C "${CURRENT_SCRIPT_DIR}" rev-parse --show-toplevel)" -UNACCEPTABLE_LANGUAGE_PATTERNS_PATH="${CURRENT_SCRIPT_DIR}/unacceptable-language.txt" - -log "Checking for unacceptable language..." -PATHS_WITH_UNACCEPTABLE_LANGUAGE=$(git -C "${REPO_ROOT}" grep \ - -l -F -w \ - -f "${UNACCEPTABLE_LANGUAGE_PATTERNS_PATH}" \ - -- \ - ":(exclude)${UNACCEPTABLE_LANGUAGE_PATTERNS_PATH}" \ -) || true | /usr/bin/paste -s -d " " - - -if [ -n "${PATHS_WITH_UNACCEPTABLE_LANGUAGE}" ]; then - fatal "❌ Found unacceptable language in files: ${PATHS_WITH_UNACCEPTABLE_LANGUAGE}." -fi - -log "✅ Found no unacceptable language." diff --git a/scripts/check-license-headers.sh b/scripts/check-license-headers.sh deleted file mode 100644 index 3cbaf95f..00000000 --- a/scripts/check-license-headers.sh +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftOpenAPIGenerator open source project -## -## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## -set -euo pipefail - -log() { printf -- "** %s\n" "$*" >&2; } -error() { printf -- "** ERROR: %s\n" "$*" >&2; } -fatal() { error "$@"; exit 1; } - -CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -REPO_ROOT="$(git -C "${CURRENT_SCRIPT_DIR}" rev-parse --show-toplevel)" - -EXPECTED_FILE_HEADER_TEMPLATE="@@===----------------------------------------------------------------------===@@ -@@ -@@ This source file is part of the SwiftOpenAPIGenerator open source project -@@ -@@ Copyright (c) YEARS Apple Inc. and the SwiftOpenAPIGenerator project authors -@@ Licensed under Apache License v2.0 -@@ -@@ See LICENSE.txt for license information -@@ See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -@@ -@@ SPDX-License-Identifier: Apache-2.0 -@@ -@@===----------------------------------------------------------------------===@@" - -PATHS_WITH_MISSING_LICENSE=( ) - -read -ra PATHS_TO_CHECK_FOR_LICENSE <<< "$( \ - git -C "${REPO_ROOT}" ls-files -z \ - ":(exclude).gitignore" \ - ":(exclude).spi.yml" \ - ":(exclude).swift-format" \ - ":(exclude).licenseignore" \ - ":(exclude).swiftformatignore" \ - ":(exclude).github/*" \ - ":(exclude)CODE_OF_CONDUCT.md" \ - ":(exclude)CONTRIBUTING.md" \ - ":(exclude)CONTRIBUTORS.txt" \ - ":(exclude)LICENSE.txt" \ - ":(exclude)NOTICE.txt" \ - ":(exclude)Package.swift" \ - ":(exclude)Package.resolved" \ - ":(exclude)README.md" \ - ":(exclude)SECURITY.md" \ - ":(exclude)scripts/unacceptable-language.txt" \ - ":(exclude)Tests/PetstoreConsumerTests/Generated" \ - ":(exclude)Tests/OpenAPIGeneratorReferenceTests/Resources/ReferenceSources/*" \ - ":(exclude)docker/*" \ - ":(exclude)**/*.docc/*" \ - ":(exclude)**/.gitignore" \ - ":(exclude)**/Package.swift" \ - ":(exclude)**/Package.resolved" \ - ":(exclude)**/README.md" \ - ":(exclude)**/openapi.yaml" \ - ":(exclude)**/openapi.yml" \ - ":(exclude)**/petstore.yaml" \ - ":(exclude)**/openapi-generator-config.yaml" \ - ":(exclude)**/openapi-generator-config.yml" \ - ":(exclude)**/docker-compose.yaml" \ - ":(exclude)**/docker/*" \ - ":(exclude)**/.dockerignore" \ - ":(exclude)Plugins/OpenAPIGenerator/PluginsShared" \ - ":(exclude)Plugins/OpenAPIGeneratorCommand/PluginsShared" \ - ":(exclude)Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp.*" \ - ":(exclude)Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp/Assets.xcassets/*" \ - ":(exclude)Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp/Preview*" \ - ":(exclude)Examples/**/Generated*" \ - ":(exclude)**/Makefile" \ - ":(exclude)**/*.html" \ - | xargs -0 \ -)" - -for FILE_PATH in "${PATHS_TO_CHECK_FOR_LICENSE[@]}"; do - FILE_BASENAME=$(basename -- "${FILE_PATH}") - FILE_EXTENSION="${FILE_BASENAME##*.}" - - case "${FILE_EXTENSION}" in - swift) EXPECTED_FILE_HEADER=$(sed -e 's|@@|//|g' <<<"${EXPECTED_FILE_HEADER_TEMPLATE}") ;; - yml) EXPECTED_FILE_HEADER=$(sed -e 's|@@|##|g' <<<"${EXPECTED_FILE_HEADER_TEMPLATE}") ;; - sh) EXPECTED_FILE_HEADER=$(cat <(echo '#!/bin/bash') <(sed -e 's|@@|##|g' <<<"${EXPECTED_FILE_HEADER_TEMPLATE}")) ;; - *) fatal "Unsupported file extension for file (exclude or update this script): ${FILE_PATH}" ;; - esac - EXPECTED_FILE_HEADER_LINECOUNT=$(wc -l <<<"${EXPECTED_FILE_HEADER}") - - FILE_HEADER=$(head -n "${EXPECTED_FILE_HEADER_LINECOUNT}" "${FILE_PATH}") - NORMALIZED_FILE_HEADER=$( - echo "${FILE_HEADER}" \ - | sed -e 's/202[3]-202[3,4]/YEARS/' -e 's/202[3,4]/YEARS/' \ - ) - - if ! diff -u \ - --label "Expected header" <(echo "${EXPECTED_FILE_HEADER}") \ - --label "${FILE_PATH}" <(echo "${NORMALIZED_FILE_HEADER}") - then - PATHS_WITH_MISSING_LICENSE+=("${FILE_PATH} ") - fi -done - -if [ "${#PATHS_WITH_MISSING_LICENSE[@]}" -gt 0 ]; then - fatal "❌ Found missing license header in files: ${PATHS_WITH_MISSING_LICENSE[*]}." -fi - -log "✅ Found no files with missing license header." diff --git a/scripts/run-swift-format.sh b/scripts/run-swift-format.sh deleted file mode 100755 index beebc2e6..00000000 --- a/scripts/run-swift-format.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftOpenAPIGenerator open source project -## -## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## -set -euo pipefail - -log() { printf -- "** %s\n" "$*" >&2; } -error() { printf -- "** ERROR: %s\n" "$*" >&2; } -fatal() { error "$@"; exit 1; } - -CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -REPO_ROOT="$(git -C "${CURRENT_SCRIPT_DIR}" rev-parse --show-toplevel)" - -FORMAT_COMMAND=(lint --strict) -for arg in "$@"; do - if [ "$arg" == "--fix" ]; then - FORMAT_COMMAND=(format --in-place) - fi -done - -SWIFTFORMAT_BIN=${SWIFTFORMAT_BIN:-$(command -v swift-format)} || fatal "❌ SWIFTFORMAT_BIN unset and no swift-format on PATH" - -git -C "${REPO_ROOT}" ls-files -z '*.swift' \ - | grep -z -v -e 'Tests/OpenAPIGeneratorReferenceTests/Resources' \ - -e 'Sources/swift-openapi-generator/Documentation.docc' \ - -e 'Generated' \ - | xargs -0 "${SWIFTFORMAT_BIN}" "${FORMAT_COMMAND[@]}" --parallel \ - && SWIFT_FORMAT_RC=$? || SWIFT_FORMAT_RC=$? - -if [ "${SWIFT_FORMAT_RC}" -ne 0 ]; then - fatal "❌ Running swift-format produced errors. - - To fix, run the following command: - - % ./scripts/run-swift-format.sh --fix - " - exit "${SWIFT_FORMAT_RC}" -fi - -log "✅ Ran swift-format with no errors." diff --git a/scripts/soundness.sh b/scripts/soundness.sh deleted file mode 100755 index 2d15984c..00000000 --- a/scripts/soundness.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftOpenAPIGenerator open source project -## -## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## -set -euo pipefail - -log() { printf -- "** %s\n" "$*" >&2; } -error() { printf -- "** ERROR: %s\n" "$*" >&2; } -fatal() { error "$@"; exit 1; } - -CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -NUM_CHECKS_FAILED=0 - -FIX_FORMAT="" -for arg in "$@"; do - if [ "$arg" == "--fix" ]; then - FIX_FORMAT="--fix" - fi -done - -SCRIPT_PATHS=( - "${CURRENT_SCRIPT_DIR}/check-for-broken-symlinks.sh" - "${CURRENT_SCRIPT_DIR}/check-for-unacceptable-language.sh" - "${CURRENT_SCRIPT_DIR}/check-license-headers.sh" -) - -for SCRIPT_PATH in "${SCRIPT_PATHS[@]}"; do - log "Running ${SCRIPT_PATH}..." - if ! bash "${SCRIPT_PATH}"; then - ((NUM_CHECKS_FAILED+=1)) - fi -done - -log "Running swift-format..." -bash "${CURRENT_SCRIPT_DIR}"/run-swift-format.sh $FIX_FORMAT > /dev/null -FORMAT_EXIT_CODE=$? -if [ $FORMAT_EXIT_CODE -ne 0 ]; then - ((NUM_CHECKS_FAILED+=1)) -fi - -if [ "${NUM_CHECKS_FAILED}" -gt 0 ]; then - fatal "❌ ${NUM_CHECKS_FAILED} soundness check(s) failed." -fi - -log "✅ All soundness check(s) passed." diff --git a/scripts/unacceptable-language.txt b/scripts/unacceptable-language.txt deleted file mode 100644 index 6ac4a985..00000000 --- a/scripts/unacceptable-language.txt +++ /dev/null @@ -1,15 +0,0 @@ -blacklist -whitelist -slave -master -sane -sanity -insane -insanity -kill -killed -killing -hang -hung -hanged -hanging From f6721fad481320f9f3cc7b887eb43ce3dd20a6ee Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Mon, 16 Sep 2024 16:40:21 +0100 Subject: [PATCH 10/15] Also remove generate-contributors script --- scripts/generate-contributors-list.sh | 52 --------------------------- 1 file changed, 52 deletions(-) delete mode 100644 scripts/generate-contributors-list.sh diff --git a/scripts/generate-contributors-list.sh b/scripts/generate-contributors-list.sh deleted file mode 100644 index 272f788d..00000000 --- a/scripts/generate-contributors-list.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftOpenAPIGenerator open source project -## -## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## -##===----------------------------------------------------------------------===## -## -## This source file is part of the SwiftNIO open source project -## -## Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors -## Licensed under Apache License v2.0 -## -## See LICENSE.txt for license information -## See CONTRIBUTORS.txt for the list of SwiftNIO project authors -## -## SPDX-License-Identifier: Apache-2.0 -## -##===----------------------------------------------------------------------===## - -set -eu -here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -contributors=$( cd "$here"/.. && git shortlog -es | cut -f2 | sed 's/^/- /' ) - -cat > "$here/../CONTRIBUTORS.txt" <<- EOF - For the purpose of tracking copyright, this is the list of individuals and - organizations who have contributed source code to SwiftOpenAPIGenerator. - - For employees of an organization/company where the copyright of work done - by employees of that company is held by the company itself, only the company - needs to be listed here. - - ## COPYRIGHT HOLDERS - - - Apple Inc. (all contributors with '@apple.com') - - ### Contributors - - $contributors - - **Updating this list** - - Please do not edit this file manually. It is generated using \`bash ./scripts/generate-contributors-list.sh\`. If a name is misspelled or appearing multiple times: add an entry in \`./.mailmap\` -EOF From e434f3914bca75ed03b574451bee0cd55c0d4b06 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Mon, 16 Sep 2024 19:42:04 +0100 Subject: [PATCH 11/15] package: Remove DocC package plugin --- Package.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/Package.swift b/Package.swift index 7b90240a..29968d06 100644 --- a/Package.swift +++ b/Package.swift @@ -62,9 +62,6 @@ let package = Package( // code. .package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.3.2"), .package(url: "https://github.com/apple/swift-http-types", from: "1.0.2"), - - // Build and preview docs - .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"), ], targets: [ From a6efc3177faba715a2f991868f8fc222212eb38e Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Mon, 16 Sep 2024 19:42:56 +0100 Subject: [PATCH 12/15] =?UTF-8?q?ci:=20Skip=20all=20docker-compose?= =?UTF-8?q?=E2=80=93based=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-compose.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 465aefd5..fef55241 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -26,11 +26,11 @@ services: soundness: <<: *common - command: /bin/bash -xcl "swift -version && uname -a && ./scripts/soundness.sh" + command: echo "skipping; moved to Github Actions" test: <<: *common - command: /bin/bash -xcl "swift $${SWIFT_TEST_VERB-test} $${WARN_AS_ERROR_ARG-} $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-} $${STRICT_CONCURRENCY_ARG-}" + command: echo "skipping; moved to Github Actions" shell: <<: *common @@ -38,13 +38,13 @@ services: integration-test: <<: *common - command: /bin/bash -xcl "swift -version && uname -a && bash ./scripts/run-integration-test.sh" + command: echo "skipping; moved to Github Actions" environment: SWIFT_OPENAPI_GENERATOR_REPO_URL: file:///code compatibility-test: <<: *common - command: /bin/bash -xcl "cat /proc/cpuinfo && cat /proc/meminfo && swift test --filter $${SWIFT_OPENAPI_COMPATIBILITY_TEST_FILTER}" + command: echo "skipping; moved to Github Actions" environment: # These can be overridden when running locally. SWIFT_OPENAPI_COMPATIBILITY_TEST_ENABLE: "true" SWIFT_OPENAPI_COMPATIBILITY_TEST_SKIP_BUILD: "true" @@ -54,10 +54,10 @@ services: docc-test: <<: *common - command: /bin/bash -xcl "swift -version && uname -a && bash ./scripts/check-for-docc-warnings.sh" + command: echo "skipping; moved to Github Actions" environment: DOCC_TARGET: swift-openapi-generator examples: <<: *common - command: /bin/bash -xcl "swift -version && uname -a && bash ./scripts/test-examples.sh" + command: echo "skipping; moved to Github Actions" From cc02f93fdfb38f9ae6cb835266302e425d7e8ad0 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Wed, 18 Sep 2024 14:54:38 +0100 Subject: [PATCH 13/15] Disable matrix jobs on nightly Swift versions but add scheduled job with them enabled --- .github/workflows/pull_request.yml | 8 +++++--- .github/workflows/scheduled.yml | 32 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/scheduled.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 09329d36..a9ce32d2 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -26,15 +26,16 @@ jobs: linux_5_9_arguments_override: "--explicit-target-dependency-import-check error" linux_5_10_arguments_override: "--explicit-target-dependency-import-check error" linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" - linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" + linux_nightly_main_enabled: false integration-test: name: Integration test uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main with: name: "Integration test" - matrix_linux_5_8_enabled: false matrix_linux_command: "apt-get update -yq && apt-get install -yq jq && ./scripts/run-integration-test.sh" + matrix_linux_5_8_enabled: false + matrix_linux_nightly_main_enabled: false compatibility-test: name: Compatibility test @@ -60,8 +61,9 @@ jobs: uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main with: name: "Example packages" - matrix_linux_5_8_enabled: false matrix_linux_command: "./scripts/test-examples.sh" + matrix_linux_5_8_enabled: false + matrix_linux_nightly_main_enabled: false swift-6-language-mode: name: Swift 6 Language Mode diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml new file mode 100644 index 00000000..cb5f46df --- /dev/null +++ b/.github/workflows/scheduled.yml @@ -0,0 +1,32 @@ +name: Scheduled + +on: + schedule: + - cron: "0 8,20 * * *" + +jobs: + unit-tests: + name: Unit tests + uses: apple/swift-nio/.github/workflows/unit_tests.yml@main + with: + linux_5_8_enabled: false + linux_5_9_arguments_override: "--explicit-target-dependency-import-check error" + linux_5_10_arguments_override: "--explicit-target-dependency-import-check error" + linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" + linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" + + integration-test: + name: Integration test + uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main + with: + name: "Integration test" + matrix_linux_command: "apt-get update -yq && apt-get install -yq jq && ./scripts/run-integration-test.sh" + matrix_linux_5_8_enabled: false + + example-packages: + name: Example packages + uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main + with: + name: "Example packages" + matrix_linux_command: "./scripts/test-examples.sh" + matrix_linux_5_8_enabled: false From 946f9a37435221fff1c00c9904c724becf025400 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Wed, 18 Sep 2024 14:54:50 +0100 Subject: [PATCH 14/15] Disable Swift 6 PR pipeline for now --- .github/workflows/pull_request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a9ce32d2..76f71961 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -68,3 +68,4 @@ jobs: swift-6-language-mode: name: Swift 6 Language Mode uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main + if: false # Disabled for now. From 4cdf16798828fd155555c1e44aca0b44767558b9 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Wed, 18 Sep 2024 14:58:23 +0100 Subject: [PATCH 15/15] Add newly added malformed-openapi.yaml to license ignore file --- .licenseignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.licenseignore b/.licenseignore index 2b80c90c..b107d3cb 100644 --- a/.licenseignore +++ b/.licenseignore @@ -23,6 +23,7 @@ docker/* **/Package.resolved **/README.md **/openapi.yaml +**/malformed-openapi.yaml **/openapi.yml **/petstore.yaml **/openapi-generator-config.yaml