-
Notifications
You must be signed in to change notification settings - Fork 355
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' | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternatively we could make the languages input conditional, e.g. something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah that's a good point! I had thought that an empty codeql-action/src/config-utils.ts Lines 384 to 392 in 5cdd182
|
||||||||||||||||||||
with: | ||||||||||||||||||||
db-location: "${{ runner.temp }}/customDbLocation" | ||||||||||||||||||||
tools: ${{ steps.prepare-test.outputs.tools-url }} | ||||||||||||||||||||
|
||||||||||||||||||||
- uses: ./../action/.github/actions/setup-swift | ||||||||||||||||||||
if: runner.os == 'macOS' | ||||||||||||||||||||
with: | ||||||||||||||||||||
codeql-path: ${{ steps.init.outputs.codeql-path }} | ||||||||||||||||||||
codeql-path: ${{ steps.init-macos.outputs.codeql-path }} | ||||||||||||||||||||
|
||||||||||||||||||||
- name: Build code | ||||||||||||||||||||
shell: bash | ||||||||||||||||||||
|
@@ -72,8 +74,8 @@ steps: | |||||||||||||||||||
exit 1 | ||||||||||||||||||||
fi | ||||||||||||||||||||
|
||||||||||||||||||||
- name: Check language autodetect for Swift | ||||||||||||||||||||
if: runner.os != 'Windows' && matrix.version != 'stable-20230403' | ||||||||||||||||||||
- name: Check language autodetect for Swift on MacOS | ||||||||||||||||||||
if: runner.os == 'macOS' && matrix.version != 'stable-20230403' | ||||||||||||||||||||
shell: bash | ||||||||||||||||||||
run: | | ||||||||||||||||||||
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }} | ||||||||||||||||||||
|
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
languages
input).