Skip to content

Commit

Permalink
added check that niwot.out hasn't changed to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dlebauer committed Aug 17, 2024
1 parent 5c9bdc0 commit dfb8c27
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 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,14 @@ 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
run: |
if git diff --exit-code Sites/Niwot/niwot.out; then
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

0 comments on commit dfb8c27

Please sign in to comment.