GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add warning and update PR checks for Swift on Linux by angelapwen · Pull Request #2399 · github/codeql-action Conversation
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @@ -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" | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| description: "An end-to-end integration test of a multi-language repository using automatic language detection for MacOS" | |
| description: "An end-to-end integration test of a multi-language repository using automatic language detection" |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 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.
The reason will be displayed to describe this comment to others. Learn more.
Alternatively we could make the languages input conditional, e.g. something like languages: ${{ runner.os == 'Linus' && 'cpp,csharp,go,java,javascript,python,ruby' || '' }}
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ah that's a good point! I had thought that an empty languages input might cause us to run with no languages but it looks like we guard against that and turn autodetect on:
codeql-action/src/config-utils.ts
Lines 384 to 392 in 5cdd182
| 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; |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks good after the typo is fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Andrew Eisenberg <[email protected]>
|
Pushed a commit to rebuild the Action. Please mark the PR as ready for review to trigger PR checks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Huh.. not sure why the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.