diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7bcd87a9..305bf50e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,11 @@ jobs: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 7.0.0 + - name: Setup continuous run + if: ${{ github.event_name == 'schedule' }} + # Force builds and tests to run on scheduled runs. + run: echo "EXTRA_BAZEL_ARGS=--cache_test_results=no --action_env=FORCE_REBUILD=1" >> $GITHUB_ENV + - name: Set up Bazel and caches uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0 with: @@ -80,7 +85,13 @@ jobs: common --config=remote - name: Run tests - run: bazel test ... --config=${{ matrix.toolchain }} --compilation_mode=${{ matrix.compilation_mode }} --copt=${{ matrix.exceptions }} ${{ matrix.extra-config }} + run: > + bazel test ... + --config=${{ matrix.toolchain }} + --compilation_mode=${{ matrix.compilation_mode }} + --copt=${{ matrix.exceptions }} + ${{ matrix.extra-config }} + ${{ env.EXTRA_BAZEL_ARGS }} # Provide a single predictably-named job for copybara to look for all-blocking-tests: