Skip to content

Commit 5b4b44c

Browse files
committed
Add PR check for reconciled tracing with legacy workflow
1 parent e466e75 commit 5b4b44c

2 files changed

Lines changed: 117 additions & 0 deletions

File tree

.github/workflows/__go-reconciled-tracing-legacy-workflow.yml

Lines changed: 88 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Go: Reconciled tracing with legacy workflow"
2+
description: "Checks that we run the autobuilder in legacy workflows with neither an autobuild step nor manual build steps"
3+
os: ["ubuntu-latest", "macos-latest"]
4+
env:
5+
# Enable reconciled Go tracing beta functionality
6+
CODEQL_ACTION_RECONCILE_GO_EXTRACTION: "true"
7+
# Remove this once we start injecting the Go tracer in the init step.
8+
CODEQL_EXTRACTOR_GO_BUILD_TRACING: "on"
9+
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
10+
steps:
11+
- uses: actions/setup-go@v3
12+
with:
13+
go-version: "^1.13.1"
14+
- uses: ./../action/init
15+
with:
16+
languages: go
17+
tools: ${{ steps.prepare-test.outputs.tools-url }}
18+
env:
19+
TEST_MODE: true
20+
- uses: ./../action/analyze
21+
env:
22+
TEST_MODE: true
23+
- shell: bash
24+
run: |
25+
cd "$RUNNER_TEMP/codeql_databases"
26+
if [[ ! -d go ]]; then
27+
echo "Did not find a Go database"
28+
exit 1
29+
fi

0 commit comments

Comments
 (0)