Skip to content

Commit

Permalink
Merge pull request #22 from Anton-4/flake-update
Browse files Browse the repository at this point in the history
flake lock update, run tests
  • Loading branch information
lukewilliamboswell authored Apr 14, 2024
2 parents ecedf7a + 2c105a5 commit 3ae34f7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Json Package for Roc 🤘

:warning: `--linker=legacy` is necessary for this package because of [this roc issue](https://github.com/roc-lang/roc/issues/3609)
:warning: On linux `--linker=legacy` is necessary for this package because of [this roc issue](https://github.com/roc-lang/roc/issues/3609)

## Example

Expand Down
19 changes: 18 additions & 1 deletion ci/all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,22 @@ for ROC_FILE in $EXAMPLES_DIR/*.roc; do
expect ci/expect_scripts/$NO_EXT_NAME.exp
done

# `roc test` every roc file if it contains a test, skip roc_nightly folder
find . -type d -name "roc_nightly" -prune -o -type f -name "*.roc" -print | while read file; do
if grep -qE '^\s*expect(\s+|$)' "$file"; then

# don't exit script if test_command fails
set +e
test_command=$($ROC test "$file")
test_exit_code=$?
set -e

if [[ $test_exit_code -ne 0 && $test_exit_code -ne 2 ]]; then
exit $test_exit_code
fi
fi

done

# test building docs website
$ROC docs $PACKAGE_DIR/main.roc
$ROC docs $PACKAGE_DIR/main.roc
38 changes: 19 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3ae34f7

Please sign in to comment.