-
Notifications
You must be signed in to change notification settings - Fork 433
Add warning and update PR checks for Swift on Linux #2399
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
Changes from 3 commits
8d601c3
9fbd0b9
ea4581b
762301c
1f0a037
e05cdae
64d954f
b496819
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,28 +1,30 @@ | ||||||||||||||||||||
| name: "Multi-language repository" | ||||||||||||||||||||
| description: "An end-to-end integration test of a multi-language repository using automatic language detection" | ||||||||||||||||||||
| description: "An end-to-end integration test of a multi-language repository using automatic language detection for MacOS" | ||||||||||||||||||||
| operatingSystems: ["macos", "ubuntu"] | ||||||||||||||||||||
| excludeOsAndVersionCombination: [ | ||||||||||||||||||||
| # Known failure for Swift on Linux before CLI v2.17.4. | ||||||||||||||||||||
| [ "ubuntu", "stable-20230403" ], | ||||||||||||||||||||
| [ "ubuntu", "stable-v2.13.5" ], | ||||||||||||||||||||
| [ "ubuntu", "stable-v2.14.6" ], | ||||||||||||||||||||
| [ "ubuntu", "stable-v2.15.5" ], | ||||||||||||||||||||
| [ "ubuntu", "stable-v2.16.6" ], | ||||||||||||||||||||
| ] | ||||||||||||||||||||
| steps: | ||||||||||||||||||||
| - uses: actions/setup-go@v5 | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| go-version: ">=1.21.0" | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - uses: ./../action/init | ||||||||||||||||||||
| id: init | ||||||||||||||||||||
| if: runner.os == 'Linux' | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| db-location: "${{ runner.temp }}/customDbLocation" | ||||||||||||||||||||
| # We manually exclude Swift from the languages list here, as it is not supported on Ubuntu | ||||||||||||||||||||
| languages: cpp,csharp,go,java,javascript,python,ruby | ||||||||||||||||||||
| tools: ${{ steps.prepare-test.outputs.tools-url }} | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - uses: ./../action/init | ||||||||||||||||||||
| id: init-macos | ||||||||||||||||||||
| if: runner.os == 'macOS' | ||||||||||||||||||||
|
||||||||||||||||||||
| let rawLanguages = (languagesInput || "") | |
| .split(",") | |
| .map((x) => x.trim().toLowerCase()) | |
| .filter((x) => x.length > 0); | |
| let autodetected: boolean; | |
| if (rawLanguages.length) { | |
| autodetected = false; | |
| } else { | |
| autodetected = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 I added the bit about MacOS because the test actually no longer tests autodetect for MacOS (since I had to manually exclude Swift from the
languagesinput).