Skip to content

Commit

Permalink
Add PR check for direct tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mercer committed Apr 12, 2024
1 parent 2eaad47 commit aa4a08d
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .github/workflows/__autobuild-direct-tracing.yml

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

30 changes: 30 additions & 0 deletions pr-checks/checks/autobuild-direct-tracing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Autobuild direct tracing"
description: "An end-to-end integration test of a Java repository built using 'build-mode: autobuild', with direct tracing enabled"
operatingSystems: ["ubuntu"]
versions: ["latest", "nightly-latest"]
env:
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
steps:
- name: Set up Java test repo configuration
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
id: init
with:
build-mode: autobuild
db-location: "${{ runner.temp }}/customDbLocation"
languages: java
tools: ${{ steps.prepare-test.outputs.tools-url }}

- name: Check that indirect tracing is disabled
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

0 comments on commit aa4a08d

Please sign in to comment.