From 060d09a82f917b2073d5f0586a1c9cd682650f3d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 16 May 2021 16:26:22 -0400 Subject: [PATCH] Improve test coverage (#71) --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c4c98498..e08c0efb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,6 +47,13 @@ jobs: files: | .github/workflows/test.yml action.yml + - name: Verify any_changed files + if: contains(steps.changed-files-specific.outputs.all_modified_files, 'action.yml') || contains(steps.changed-files-specific.outputs.all_modified_files, '.github/workflows/test.yml') + run: | + if [[ "${{ steps.changed-files-specific.outputs.any_changed }}" != 'true' ]]; then + echo "Invalid output: Expected (true) got (${{ steps.changed-files-specific.outputs.any_changed }})" + exit 1 + fi - name: Show output run: | echo "${{ toJSON(steps.changed-files-specific.outputs) }}"