From dfb8c271027de1a971ad59b8ca8f729cd8e338be Mon Sep 17 00:00:00 2001 From: David LeBauer Date: Fri, 16 Aug 2024 13:15:48 -0700 Subject: [PATCH] added check that niwot.out hasn't changed to github actions --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 538f434..5f115d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 +