Skip to content

Commit

Permalink
Merge pull request #18 from PecanProject/15_check_output
Browse files Browse the repository at this point in the history
added check that niwot.out hasn't changed to github actions
  • Loading branch information
dlebauer authored Aug 19, 2024
2 parents 5c9bdc0 + 8e959b7 commit db537b7
Show file tree
Hide file tree
Showing 2 changed files with 5,249 additions and 5,238 deletions.
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
if: runner.os != 'Windows' #fails b/c line endings?
shell: bash
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
Loading

0 comments on commit db537b7

Please sign in to comment.