Skip to content

Commit 463930c

Browse files
committed
Add PR check for none build mode
1 parent d982a14 commit 463930c

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed

.github/workflows/__build-mode-none.yml

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

pr-checks/checks/build-mode-none.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Build mode none"
2+
description: "An end-to-end integration test of a Java repository built using 'build-mode: none'"
3+
operatingSystems: ["ubuntu"]
4+
versions: ["latest", "nightly-latest"]
5+
steps:
6+
- uses: ./../action/init
7+
id: init
8+
with:
9+
build-mode: none
10+
db-location: "${{ runner.temp }}/customDbLocation"
11+
languages: java
12+
tools: ${{ steps.prepare-test.outputs.tools-url }}
13+
14+
- name: Validate database build mode
15+
run: |
16+
metadata_path="$RUNNER_TEMP/customDbLocation/java/codeql-database.yml"
17+
build_mode=$(yq eval '.buildMode' "$metadata_path")
18+
if [[ "$build_mode" != "none" ]]; then
19+
echo "Expected build mode to be 'none' but was $build_mode"
20+
exit 1
21+
fi
22+
23+
- uses: ./../action/autobuild
24+
- uses: ./../action/analyze

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy