Skip to content

Commit

Permalink
Tests are silent, unless they fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation authored Mar 8, 2024
1 parent 04ed1d0 commit f0b7c44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ jobs:
# Run the tests
set -o pipefail
RESULT=0
aiken check 2>&1 | tee aiken.log || RESULT=$?
aiken check -t silent 2>&1 || RESULT=$?
if [ $RESULT -ne 0 ]; then
aiken check 2>&1 | tee aiken.log
{
echo 'FAILING_TESTS<<EOF'
grep "FAIL" aiken.log
Expand All @@ -42,4 +43,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: `Tests failed:\n\n\`\`\`\n${{ env.FAILING_TESTS }}\n\`\`\``
})
})

0 comments on commit f0b7c44

Please sign in to comment.