From f017cfcb7350024b3c6050516a56871316e3bbad Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Thu, 30 Oct 2025 10:00:40 -0700 Subject: [PATCH 1/2] Add github workflow to test PR in github actions Add github actions for swift-driver tests that uses swiftlang/github-workflows. --- .github/workflows/pull_request.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 000000000..fbaba26c3 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,36 @@ +name: Pull request + +permissions: + contents: read + +on: + pull_request: + types: [opened, reopened, synchronize] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + tests: + name: Test + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main + with: + linux_os_versions: '["jammy"]' + linux_build_command: 'swift test' + linux_swift_versions: '["nightly-main", "nightly-6.2"]' + windows_swift_versions: '["nightly-main"]' + windows_build_command: 'Invoke-Program swift test' + enable_linux_static_sdk_build: true + linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build + enable_macos_checks: true + macos_xcode_versions: "[\"26.0\"]" + macos_build_command: swift test + + soundness: + name: Soundness + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main + with: + license_header_check_project_name: "Swift" + api_breakage_check_enabled: false + format_check_enabled: false From 165df4a8482716967372e3bfa978faa1c63ffe79 Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Mon, 3 Nov 2025 17:28:13 -0800 Subject: [PATCH 2/2] Remove the linux_build_command --- .github/workflows/pull_request.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index fbaba26c3..d1b882e8b 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -17,7 +17,6 @@ jobs: uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main with: linux_os_versions: '["jammy"]' - linux_build_command: 'swift test' linux_swift_versions: '["nightly-main", "nightly-6.2"]' windows_swift_versions: '["nightly-main"]' windows_build_command: 'Invoke-Program swift test'