Skip to content

Commit

Permalink
Adding proper self-test test
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard committed Apr 2, 2024
1 parent e11a1f4 commit 7cf0f23
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/self-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,15 @@ jobs:
service_account_email: ${{ secrets.SUDO_GCP_SERVICE_ACCOUNT }}

- name: Check Output
run: echo "${{ steps.test-action.outputs.uploaded }}"
run: |
# Check that both files were uploaded (using the output from the action)
files="${{ steps.test-action.outputs.files }}"
if [[ $files != *'junit.xml'* ]]; then
echo "junit.xml not uploaded"
exit 1
fi
if [[ $files != *'metadata.json'* ]]; then
echo "metadata.json not uploaded"
exit 1
fi
echo "Files uploaded successfully"

0 comments on commit 7cf0f23

Please sign in to comment.