Skip to content
Draft
Changes from all 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
20 changes: 19 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading