Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added check that niwot.out hasn't changed to github actions #18

Merged
merged 9 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:

# try to build PEcAn on all versions of R
# try to build SIPNET on Windows, Ubuntu, MacOS
build:
strategy:
fail-fast: false
Expand Down Expand Up @@ -44,3 +44,12 @@ jobs:
run: |
echo "::error title={No Output}::Test run for Niwot site failed to produce output"
exit 1
# check whether niwot.out has changed
- name: Check whether niwot.out has changed
dlebauer marked this conversation as resolved.
Show resolved Hide resolved
run: |
if git diff --exit-code Sites/Niwot/niwot.out; then
dlebauer marked this conversation as resolved.
Show resolved Hide resolved
echo "Success: Niwot.out created and has not changed"
else
echo "::error title={Output Changed}::The test file niwot.out has changed"
exit 1
fi
Loading
Loading