Skip to content

Commit

Permalink
Add PR check for none build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Jan 31, 2024
1 parent a052a9b commit c1e0768
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/__build-mode-none.yml

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

24 changes: 24 additions & 0 deletions pr-checks/checks/build-mode-none.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Build mode none"
description: "An end-to-end integration test of a Java repository built using 'build-mode: none'"
operatingSystems: ["ubuntu"]
versions: ["latest", "nightly-latest"]
steps:
- uses: ./../action/init
id: init
with:
build-mode: none
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" != "none" ]]; then
echo "Expected build mode to be 'none' but was $build_mode"
exit 1
fi
- uses: ./../action/autobuild
- uses: ./../action/analyze

0 comments on commit c1e0768

Please sign in to comment.