-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PR check for direct tracing with custom working directory
- Loading branch information
1 parent
599f279
commit 7025f05
Showing
2 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
92 changes: 92 additions & 0 deletions
92
.github/workflows/__autobuild-direct-tracing-with-working-dir.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
pr-checks/checks/autobuild-direct-tracing-with-working-dir.yml
This file contains 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,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 |