Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4/?] Add ability to run code examples in the playground: Get pony snippets tested with ponyc at CI time #550

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Only check if runnable when file has expectations set
  • Loading branch information
shaedrich committed May 31, 2024
commit ee216905d8cd69a68861a0c69adfa143a0d71176
2 changes: 1 addition & 1 deletion .github/workflows/check-code-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ for file in *.pony; do # actors-sequential.pony
expectations=$(jq --arg file "${file}" ".[\"$file\"]" ../code-samples.json) # -r
#echo "Expectations for $file $expectations"
isRunnable=$(echo "$expectations" | jq '.runnable')
if ! $isRunnable; then
if ! [ -z "$expectations" ] && ! $isRunnable; then
echo -e "\u2139\uFE0F File not runnable. Skip"
((notRunnable++))
continue
Expand Down