Skip to content
Open
Show file tree
Hide file tree
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
24 changes: 23 additions & 1 deletion .github/workflows/test-race.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ jobs:
until pg_isready -h 127.0.0.1; do docker container inspect boundary-sql-tests &> /dev/null || exit 255; sleep 1; done

- name: Test
id: test
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
env:
TEST_PACKAGE: "./..."
Expand All @@ -183,7 +184,28 @@ jobs:
max_attempts: 1
timeout_minutes: 120
retry_on: error
command: make test
command: make test 2>&1 | tee test-output.log
- name: Generate Test Summary
if: always()
run: |
echo "## 🧪 Race Test Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ "${{ steps.test.outcome }}" == "success" ]; then
echo "✅ **All race tests passed!**" >> $GITHUB_STEP_SUMMARY
else
echo "❌ **Race tests failed!**" >> $GITHUB_STEP_SUMMARY
fi
echo "" >> $GITHUB_STEP_SUMMARY

if [ -f test-output.log ]; then
echo "### Test Summary Table" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
sed -n '/│.*STATUS.*PACKAGE.*PASS.*FAIL/,/^[0-9].*└/p' test-output.log >> $GITHUB_STEP_SUMMARY || \
echo "Test summary table not available" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
fi
echo "**Workflow Run:** [View Details](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY
- name: Cleanup
if: always()
run: |
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ jobs:
until pg_isready -h 127.0.0.1; do docker container inspect boundary-sql-tests &> /dev/null || exit 255; sleep 1; done

- name: Test
id: test
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
env:
TEST_PACKAGE: "./..."
Expand All @@ -183,7 +184,29 @@ jobs:
max_attempts: 1
timeout_minutes: 120
retry_on: error
command: make test
command: make test 2>&1 | tee test-output.log
- name: Generate Test Summary
if: always()
run: |
echo "## 🧪 Test Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ "${{ steps.test.outcome }}" == "success" ]; then
echo "✅ **All tests passed!**" >> $GITHUB_STEP_SUMMARY
else
echo "❌ **Tests failed!**" >> $GITHUB_STEP_SUMMARY
fi
echo "" >> $GITHUB_STEP_SUMMARY

if [ -f test-output.log ]; then
echo "### Test Summary Table" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
sed -n '/│.*STATUS.*PACKAGE.*PASS.*FAIL/,/^[0-9].*└/p' test-output.log >> $GITHUB_STEP_SUMMARY || \
echo "Test summary table not available" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
fi

echo "**Workflow Run:** [View Details](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY
- name: Cleanup
if: always()
run: |
Expand Down
Loading