improve comments zig tests, set up zig tests in CI

This commit is contained in:
Anton-4 2022-08-19 17:14:49 +02:00
parent 605807468c
commit 9a715a0d4b
No known key found for this signature in database
GPG key ID: A13F4A6E21141925
2 changed files with 4 additions and 2 deletions

View file

@ -1,9 +1,10 @@
#!/usr/bin/env bash
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
# Test every zig
# Execute zig tests (see build.zig)
zig build test
# fmt every zig
# 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)

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
# Test failures will always point at the _start function