Bump actions/setup-java from 3 to 4 (#364) #485
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: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- name: Mount caches | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.sbt | |
~/.ivy2/cache | |
~/.cache/coursier | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }} | |
- name: Compile and test | |
run: | | |
sbt -J-Xmx2G -J-Xss4M test | |
shell: bash | |
- name: Format check | |
run: | | |
sbt scalafmtCheck test:scalafmtCheck scalafmtSbtCheck | |
# Single final job for mergify. | |
ci-passed: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- run: ':' |