mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-13 01:25:01 +00:00
10 lines
376 B
Bash
Executable file
10 lines
376 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
|
|
set -euxo pipefail
|
|
|
|
# Execute zig tests (see build.zig)
|
|
zig build test
|
|
|
|
# check formatting of zig files
|
|
find src/*.zig -type f -print0 | xargs -n 1 -0 zig fmt --check || (echo "zig fmt --check FAILED! Check the previous lines to see which files were improperly formatted." && exit 1)
|