From bc1aaaa1492395668cfd91d733e1829636e71d00 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Tue, 20 Jan 2026 21:50:37 -0600 Subject: [PATCH] Add verification step to template-files testing --- .github/workflows/tests.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3bbc074..faa3599 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -105,9 +105,27 @@ jobs: config: ./template-files/data/error.yml stubs: ./template-files/data/templates - - name: Run Tests + - name: Verify file contents run: diff --recursive .github_cache/template-files template-files/data/expected + - name: Verify test outcomes + run: | + failed=0 + + # Success case should succeed + if [[ "${{ steps.templates-success.outcome }}" != "success" ]]; then + echo "::error::Success case: Expected step to succeed" + failed=1 + fi + + # Error case should fail + if [[ "${{ steps.templates-error.outcome }}" != "failure" ]]; then + echo "::error::Error case: Expected step to fail" + failed=1 + fi + + exit $failed + - name: Filter Changes uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 id: filter