Skip to content

Commit f017cfc

Browse files
Add github workflow to test PR in github actions
Add github actions for swift-driver tests that uses swiftlang/github-workflows.
1 parent c54107d commit f017cfc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Pull request
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
tests:
16+
name: Test
17+
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
18+
with:
19+
linux_os_versions: '["jammy"]'
20+
linux_build_command: 'swift test'
21+
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
22+
windows_swift_versions: '["nightly-main"]'
23+
windows_build_command: 'Invoke-Program swift test'
24+
enable_linux_static_sdk_build: true
25+
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build
26+
enable_macos_checks: true
27+
macos_xcode_versions: "[\"26.0\"]"
28+
macos_build_command: swift test
29+
30+
soundness:
31+
name: Soundness
32+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
33+
with:
34+
license_header_check_project_name: "Swift"
35+
api_breakage_check_enabled: false
36+
format_check_enabled: false

0 commit comments

Comments
 (0)