aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-05-14 10:18:45 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2021-05-14 10:40:30 +0200
commit0dcaf23ee1472c737bedd92aae5a7b340ce570a6 (patch)
tree29699399e10f46bcbcabfb71c2da88967205bd91 /.github
parent839883c1d6898bbb2ecddd3f545fd184ee8b964a (diff)
downloadjazzer-api-0dcaf23ee1472c737bedd92aae5a7b340ce570a6.tar.gz
Specify --java_runtime_version explicitly
Sets the Java runtime version to use for executing the tests to the matrix JDK version. Also removes the redundant -c opt flag which is already contained in the .bazelrc.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/run-all-tests.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/run-all-tests.yml b/.github/workflows/run-all-tests.yml
index 17016d1d..68ba8998 100644
--- a/.github/workflows/run-all-tests.yml
+++ b/.github/workflows/run-all-tests.yml
@@ -48,10 +48,10 @@ jobs:
run: curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-darwin-amd64 && chmod +x bazelisk-darwin-amd64
- name: Build
- run: ./bazelisk-${{ matrix.arch }}-amd64 build --config=ci --disk_cache=${{ matrix.cache }} -c opt ${{ matrix.jdk8_flag }} //...
+ run: ./bazelisk-${{ matrix.arch }}-amd64 build --config=ci --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} ${{ matrix.jdk8_flag }} //...
- name: Test
- run: ./bazelisk-${{ matrix.arch }}-amd64 test --config=ci --disk_cache=${{ matrix.cache }} -c opt ${{ matrix.jdk8_flag }} --test_tag_filters="-broken-on-${{ matrix.arch }}" //...
+ run: ./bazelisk-${{ matrix.arch }}-amd64 test --config=ci --disk_cache=${{ matrix.cache }} --java_runtime_version=localjdk_${{ matrix.jdk }} ${{ matrix.jdk8_flag }} --test_tag_filters="-broken-on-${{ matrix.arch }}" //...
- name: Upload test logs
if: always()