-
Notifications
You must be signed in to change notification settings - Fork 132
[CI] GitHub Actions support for PR testing and automerger #526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
742254d
[CI] GitHub Actions support for PR testing and automerger
shahmishal 585630c
Fix python lint failures
shahmishal 2b093c1
Drop License header check and unacceptable lang from GitHub Actions
shahmishal d02616e
Don't run linux test in parallel
shahmishal e3a0e8a
Update the linux actions to build only for now.
shahmishal 1c39739
Split up the line to avoid length issue with python linter
shahmishal e55580b
Only build for Windows and disable the static sdk for now
shahmishal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Create PR to merge release into main branch | ||
| # In the first period after branching the release branch, | ||
| # we typically want to include many changes from `main` in the release branch. | ||
| # This workflow automatically creates a PR to merge the release branch into the main. | ||
| # Later in the release cycle we should stop this practice to avoid landing risky changes by disabling this workflow. | ||
| # To do so, disable the workflow as described in https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow | ||
| permissions: | ||
| contents: read | ||
| on: | ||
| schedule: | ||
| - cron: '0 9 * * MON' | ||
| workflow_dispatch: | ||
| jobs: | ||
| create_merge_pr: | ||
| name: Create PR to merge release into main branch | ||
| uses: swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main | ||
| with: | ||
| head_branch: release/6.3 | ||
| base_branch: main | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| if: (github.event_name == 'schedule' && github.repository == 'swiftlang/swift-tools-support-core') || (github.event_name != 'schedule') # Ensure that we don't run this on a schedule in a fork |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| 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: '["amazonlinux2", "bookworm", "noble", "jammy", "rhel-ubi9"]' | ||
| linux_swift_versions: '["nightly-main", "nightly-6.2"]' | ||
| linux_build_command: 'swift test --no-parallel' | ||
| windows_swift_versions: '["nightly-main"]' | ||
| enable_linux_static_sdk_build: true | ||
| enable_android_sdk_build: true | ||
| android_sdk_build_command: "swift build --build-tests" | ||
| android_ndk_versions: '["r27d", "r29"]' | ||
| enable_ios_checks: true | ||
| enable_macos_checks: true | ||
| macos_exclude_xcode_versions: "[{\"xcode_version\": \"16.3\"}, {\"xcode_version\": \"16.4\"}]" | ||
|
|
||
| soundness: | ||
| name: Soundness | ||
| uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | ||
| with: | ||
| license_header_check_project_name: "Swift.org" | ||
| license_header_check_enabled: false | ||
| unacceptable_language_check_enabled: false | ||
| api_breakage_check_enabled: false | ||
| format_check_enabled: false | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.