Skip to content

Commit 09dadbf

Browse files
authored
Merge pull request #2006 from cachemeifyoucan/eng/PR-github-workflow
Add github workflow to test PR in github actions
2 parents 77f79b5 + 165df4a commit 09dadbf

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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_swift_versions: '["nightly-main", "nightly-6.2"]'
21+
windows_swift_versions: '["nightly-main"]'
22+
windows_build_command: 'Invoke-Program swift test'
23+
enable_linux_static_sdk_build: true
24+
linux_static_sdk_build_command: SWIFTBUILD_STATIC_LINK=1 LLBUILD_STATIC_LINK=1 swift build
25+
enable_macos_checks: true
26+
macos_xcode_versions: "[\"26.0\"]"
27+
macos_build_command: swift test
28+
29+
soundness:
30+
name: Soundness
31+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
32+
with:
33+
license_header_check_project_name: "Swift"
34+
api_breakage_check_enabled: false
35+
format_check_enabled: false

0 commit comments

Comments
 (0)