Skip to content

Commit a833cba

Browse files
committed
Add shell wrapping to GITHUB_STEP_SUMMARY
1 parent fb71d0d commit a833cba

File tree

1 file changed

+8
-0
lines changed
  • benchmarks/ts-type-checkers

1 file changed

+8
-0
lines changed

benchmarks/ts-type-checkers/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@ echo "typescript (tsgo) demo10"
2323
./node_modules/@typescript/native-preview-linux-x64/lib/tsgo --noEmit --jsx preserve --skipLibCheck --diagnostics demo10.tsx || true
2424

2525
echo "comparison demo"
26+
27+
echo "\`\`\`shell\n" >> "$GITHUB_STEP_SUMMARY"
2628

2729
hyperfine -N -i './ezno check demo.tsx' './node_modules/@typescript/native-preview-linux-x64/lib/tsgo --noEmit --jsx preserve --skipLibCheck demo.tsx' 'node ./node_modules/typescript/lib/_tsc.js --noEmit --jsx preserve --skipLibCheck demo.tsx' >> "$GITHUB_STEP_SUMMARY"
2830

31+
echo "\n\`\`\`\n\n" >> "$GITHUB_STEP_SUMMARY"
32+
2933
echo "comparison demo10"
3034

35+
echo "\`\`\`shell\n" >> "$GITHUB_STEP_SUMMARY"
36+
3137
hyperfine -N -i './ezno check demo10.tsx' './node_modules/@typescript/native-preview-linux-x64/lib/tsgo --noEmit --jsx preserve --skipLibCheck demo10.tsx' 'node ./node_modules/typescript/lib/_tsc.js --noEmit --jsx preserve --skipLibCheck demo10.tsx' >> "$GITHUB_STEP_SUMMARY"
38+
39+
echo "\n\`\`\`" >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)