-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ab8e2a
commit 3bd00e8
Showing
4 changed files
with
226 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Build mode autobuild" | ||
description: "An end-to-end integration test of a Java repository built using 'build-mode: autobuild'" | ||
operatingSystems: ["ubuntu"] | ||
versions: ["nightly-latest"] | ||
steps: | ||
- 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 | ||
- uses: ./../action/analyze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Build mode manual" | ||
description: "An end-to-end integration test of a Java repository built using 'build-mode: manual'" | ||
operatingSystems: ["ubuntu"] | ||
versions: ["nightly-latest"] | ||
steps: | ||
- uses: ./../action/init | ||
id: init | ||
with: | ||
build-mode: manual | ||
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" != "manual" ]]; then | ||
echo "Expected build mode to be 'manual' but was $build_mode" | ||
exit 1 | ||
fi | ||
- uses: ./../action/.github/actions/setup-swift | ||
with: | ||
codeql-path: ${{ steps.init.outputs.codeql-path }} | ||
|
||
- name: Build code | ||
shell: bash | ||
run: ./build.sh | ||
|
||
- uses: ./../action/analyze |