File tree 2 files changed +16
-1
lines changed 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- trunk
8
8
workflow_dispatch :
9
+ inputs :
10
+ disable_test_cache :
11
+ description : ' Force re-run of tests (disable test cache)'
12
+ required : false
13
+ default : false
14
+ type : boolean
9
15
10
16
jobs :
11
17
format :
26
32
name : All RBE tests
27
33
caching : false
28
34
ruby-version : jruby-9.4.12.0
29
- run : ./scripts/github-actions/ci-build.sh
35
+ run : ./scripts/github-actions/ci-build.sh ${{ github.event.inputs.disable_test_cache }}
Original file line number Diff line number Diff line change @@ -4,11 +4,20 @@ set -eufo pipefail
4
4
# We want to see what's going on
5
5
set -x
6
6
7
+ # Default to auto if no parameter is provided
8
+ CACHE_RESULTS=" auto"
9
+
10
+ # If "disable test cache" is passed in and true
11
+ if [ $# -gt 0 ] && [ " $1 " = " true" ]; then
12
+ CACHE_RESULTS=" no"
13
+ fi
14
+
7
15
# Now run the tests. The engflow build uses pinned browsers
8
16
# so this should be fine
9
17
# shellcheck disable=SC2046
10
18
bazel test --config=rbe-ci --build_tests_only \
11
19
--keep_going --flaky_test_attempts=2 \
20
+ --cache_test_results=${CACHE_RESULTS} \
12
21
//... -- $( cat .skipped-tests | tr ' \n' ' ' )
13
22
14
23
# Build the packages we want to ship to users
You can’t perform that action at this time.
0 commit comments