Update Java version used by CI to 17 #248
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup bin directory | |
run: | | |
mkdir -p $HOME/bin | |
echo "$HOME/bin" >> $GITHUB_PATH | |
- name: Setup build dependencies | |
run: | | |
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 | |
chmod +x bazelisk-linux-amd64 | |
mv bazelisk-linux-amd64 $HOME/bin/bazelisk | |
- name: Build | |
run: bazelisk build //... | |
- name: Test | |
run: bazelisk test //... |