Path: blob/trunk/scripts/github-actions/ci-build.sh
2867 views
#!/usr/bin/env bash12set -eufo pipefail3# We want to see what's going on4set -x56# Define heap size for GitHub Actions runner7HEAP_SIZE="-Xmx8g"89# Default to auto if no parameter is provided10CACHE_RESULTS="auto"1112# If "disable test cache" is passed in and true13if [ $# -gt 0 ] && [ "$1" = "true" ]; then14CACHE_RESULTS="no"15fi1617# Now run the tests. The engflow build uses pinned browsers18# so this should be fine19# shellcheck disable=SC204620bazel --host_jvm_args=${HEAP_SIZE} test --config=rbe-ci --build_tests_only \21--keep_going --flaky_test_attempts=2 \22--cache_test_results=${CACHE_RESULTS} \23//... -- $(cat .skipped-tests | tr '\n' ' ')2425# Build the packages we want to ship to users26bazel build --config=rbe-ci --build_tag_filters=release-artifact //...272829