-
Notifications
You must be signed in to change notification settings - Fork 433
Fix incompatibility between direct tracing in the autobuild Action and specifying a custom working directory
#2328
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
599f279
6d62742
b004bb4
12243c7
485d096
ba4e487
94acfdc
f2ea211
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.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: "Autobuild direct tracing (custom working directory)" | ||
| description: > | ||
| An end-to-end integration test of a Java repository built using 'build-mode: autobuild', | ||
| with direct tracing enabled and a custom working directory specified as the input to the | ||
| autobuild Action. | ||
| operatingSystems: ["ubuntu", "windows"] | ||
| versions: ["linked", "nightly-latest"] | ||
| env: | ||
| CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true | ||
| steps: | ||
| - name: Test setup | ||
| shell: bash | ||
| run: | | ||
| # Make sure that Gradle build succeeds in autobuild-dir ... | ||
| cp -a ../action/tests/java-repo autobuild-dir | ||
| # ... and fails if attempted in the current directory | ||
| echo > build.gradle | ||
| - uses: ./../action/init | ||
| with: | ||
| build-mode: autobuild | ||
| languages: java | ||
| tools: ${{ steps.prepare-test.outputs.tools-url }} | ||
| - name: Check that indirect tracing is disabled | ||
| shell: bash | ||
| run: | | ||
| if [[ ! -z "${CODEQL_RUNNER}" ]]; then | ||
| echo "Expected indirect tracing to be disabled, but the" \ | ||
| "CODEQL_RUNNER environment variable is set." | ||
| exit 1 | ||
| fi | ||
| - uses: ./../action/autobuild | ||
| with: | ||
| working-directory: autobuild-dir | ||
| - uses: ./../action/analyze | ||
Uh oh!
There was an error while loading. Please reload this page.