Skip to content

Commit aa4a08d

Browse files
committed
Add PR check for direct tracing
1 parent 2eaad47 commit aa4a08d

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

.github/workflows/__autobuild-direct-tracing.yml

+86
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Autobuild direct tracing"
2+
description: "An end-to-end integration test of a Java repository built using 'build-mode: autobuild', with direct tracing enabled"
3+
operatingSystems: ["ubuntu"]
4+
versions: ["latest", "nightly-latest"]
5+
env:
6+
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
7+
steps:
8+
- name: Set up Java test repo configuration
9+
run: |
10+
mv * .github ../action/tests/multi-language-repo/
11+
mv ../action/tests/multi-language-repo/.github/workflows .github
12+
mv ../action/tests/java-repo/* .
13+
14+
- uses: ./../action/init
15+
id: init
16+
with:
17+
build-mode: autobuild
18+
db-location: "${{ runner.temp }}/customDbLocation"
19+
languages: java
20+
tools: ${{ steps.prepare-test.outputs.tools-url }}
21+
22+
- name: Check that indirect tracing is disabled
23+
run: |
24+
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
25+
echo "Expected indirect tracing to be disabled, but the" \
26+
"CODEQL_RUNNER environment variable is set."
27+
exit 1
28+
fi
29+
30+
- uses: ./../action/analyze

0 commit comments

Comments
 (0)