Skip to content

Commit

Permalink
Add PR check for direct tracing without build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed May 9, 2024
1 parent c3e124f commit 392a9f9
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 2 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/__autobuild-direct-tracing-no-build-mode.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .github/workflows/__autobuild-direct-tracing.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions pr-checks/checks/autobuild-direct-tracing-no-build-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Autobuild direct tracing without build mode"
description: "An end-to-end integration test of a Java repository built with the autobuild Action, with direct tracing enabled"
operatingSystems: ["ubuntu", "windows"]
versions: ["latest", "nightly-latest"]
env:
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
steps:
- name: Set up Java test repo configuration
shell: bash
run: |
mv * .github ../action/tests/multi-language-repo/
mv ../action/tests/multi-language-repo/.github/workflows .github
mv ../action/tests/java-repo/* .
- uses: ./../action/init
with:
db-location: "${{ runner.temp }}/customDbLocation"
languages: java
tools: ${{ steps.prepare-test.outputs.tools-url }}

- uses: ./../action/autobuild

- 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/analyze
1 change: 0 additions & 1 deletion pr-checks/checks/autobuild-direct-tracing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ steps:
mv ../action/tests/java-repo/* .
- uses: ./../action/init
id: init
with:
build-mode: autobuild
db-location: "${{ runner.temp }}/customDbLocation"
Expand Down

0 comments on commit 392a9f9

Please sign in to comment.