Skip to content

Commit 392a9f9

Browse files
committed
Add PR check for direct tracing without build mode
1 parent c3e124f commit 392a9f9

4 files changed

Lines changed: 124 additions & 2 deletions

File tree

.github/workflows/__autobuild-direct-tracing-no-build-mode.yml

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Autobuild direct tracing without build mode"
2+
description: "An end-to-end integration test of a Java repository built with the autobuild Action, with direct tracing enabled"
3+
operatingSystems: ["ubuntu", "windows"]
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+
shell: bash
10+
run: |
11+
mv * .github ../action/tests/multi-language-repo/
12+
mv ../action/tests/multi-language-repo/.github/workflows .github
13+
mv ../action/tests/java-repo/* .
14+
15+
- uses: ./../action/init
16+
with:
17+
db-location: "${{ runner.temp }}/customDbLocation"
18+
languages: java
19+
tools: ${{ steps.prepare-test.outputs.tools-url }}
20+
21+
- uses: ./../action/autobuild
22+
23+
- name: Check that indirect tracing is disabled
24+
shell: bash
25+
run: |
26+
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
27+
echo "Expected indirect tracing to be disabled, but the" \
28+
"CODEQL_RUNNER environment variable is set."
29+
exit 1
30+
fi
31+
32+
- uses: ./../action/analyze

pr-checks/checks/autobuild-direct-tracing.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ steps:
1313
mv ../action/tests/java-repo/* .
1414
1515
- uses: ./../action/init
16-
id: init
1716
with:
1817
build-mode: autobuild
1918
db-location: "${{ runner.temp }}/customDbLocation"

0 commit comments

Comments
 (0)