-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate "test and compare" test to be done from GH Actions
- Loading branch information
1 parent
99dee39
commit dcce0d6
Showing
6 changed files
with
51 additions
and
77 deletions.
There are no files selected for viewing
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,46 @@ | ||
# ---------------------------------------------------------------------------- | ||
# GitHub Actions workflow to test correct output on demo models. | ||
# ---------------------------------------------------------------------------- | ||
|
||
name: Test Demo Models | ||
|
||
on: [push, pull_request] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
test: | ||
name: Test Demo Models | ||
runs-on: ubuntu-latest | ||
container: kambi/castle-engine-cloud-builds-tools:cge-unstable | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Checkout demo-models | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: castle-engine/demo-models | ||
path: demo-models | ||
|
||
- name: Build | ||
run: make | ||
|
||
- name: Run Tests | ||
run: test_scripts/run_tests_on_dir_final.sh demo-models/ | ||
|
||
# We save output before comparing. | ||
# This way we have it even when comparing fails. | ||
# This is useful to later analyze, and to update test_scripts/run_tests_valid_output.txt . | ||
- name: Archive Artifacts (logs) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: logs | ||
path: | | ||
run_tests_output.txt | ||
run_tests_output_verbose.txt | ||
if-no-files-found: error | ||
|
||
- name: Compare test with last known good output | ||
run: diff -wu run_tests_output.txt test_scripts/run_tests_valid_output.txt |
This file was deleted.
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
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
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
File renamed without changes.