mirror of
https://github.com/github/codeql-action.git
synced 2026-05-22 13:59:03 +00:00
30ecc82e64
Lists are easier to modify
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: "Build mode autobuild"
|
|
description: "An end-to-end integration test of a Java repository built using 'build-mode: autobuild'"
|
|
operatingSystems:
|
|
- ubuntu
|
|
- windows
|
|
versions:
|
|
- linked
|
|
- nightly-latest
|
|
installJava: true
|
|
installYq: 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: Validate database build mode
|
|
run: |
|
|
metadata_path="$RUNNER_TEMP/customDbLocation/java/codeql-database.yml"
|
|
build_mode=$(yq eval '.buildMode' "$metadata_path")
|
|
if [[ "$build_mode" != "autobuild" ]]; then
|
|
echo "Expected build mode to be 'autobuild' but was $build_mode"
|
|
exit 1
|
|
fi
|
|
|
|
- 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
|