Skip to content

Commit

Permalink
add test checking to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
philippguevorguian committed Feb 13, 2024
1 parent ec7930a commit 7986592
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,14 @@ jobs:
index=$(($length - 2))
latest_commit=$(jq --argjson index $index '.[$index]' response.json)
echo "Get commit SHA of the latest commit:"
latest_commit_sha=$(echo "$latest_commit" | jq -r '.sha')
COMMIT_HASH=$(echo "$latest_commit" | jq -r '.sha')
echo "$latest_commit_sha"
- name: read integration test status
run: |
TEST_STATUS=$(cat test_status.yaml | grep "${COMMIT_HASH}" | cut -d ' ' -f 2|| echo "NOT FOUND")
- name: check test status
run: |
if [ "${TEST_STATUS}" != "PASS" ]; then
echo "error: The test_status.yaml file indicates a failure for the second-to-last commit."
exit 1
fi

0 comments on commit 7986592

Please sign in to comment.