test - add bash script tests to CI (#54)

This commit is contained in:
Jason Bedard 2022-03-30 17:01:16 -07:00 committed by GitHub
parent 3599515632
commit d21acfbd5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -34,3 +34,6 @@ jobs:
# Bazelisk will download bazel to here
XDG_CACHE_HOME: ~/.cache/bazel-repo
run: bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test //...
- name: integration tests
# Find all shell scripts within e2e, echo the filename, execute, fail on error
run: find e2e/*.sh -maxdepth 1 -type f -exec sh -c 'echo "\n\n------------------------------- $0 -------------------------------" && "$0" || kill $PPID' \{\} \;

View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
bazel run //lib/tests/write_source_files:write_dist