From 46a03c2e37c0873c79c3224adba5723e8919a072 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Wed, 24 Jul 2024 12:24:33 +0200 Subject: [PATCH] [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 | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a104686a..bfe40d09 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,12 +1,26 @@ 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 \ No newline at end of file + soundness: + name: Soundness + uses: apple/swift-nio/.github/workflows/soundness.yml@main + with: + license_header_check_project_name: "SwiftOpenAPIGenerator" + + unit-tests: + name: Checks + uses: apple/swift-nio/.github/workflows/unit_tests.yml@main + with: + linux_5_8_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + linux_nightly_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + linux_nightly_main_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" + + cxx-interop: + name: Checks + uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main