Bump actions/setup-java from 3 to 4 (#168) #66
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: | |
pull_request: | |
push: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
java: 8 | |
- os: ubuntu-latest | |
java: 11 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: ${{ matrix.java }} | |
- name: Coursier cache | |
uses: coursier/cache-action@v6 | |
- name: Build and test | |
run: sbt scalafmtSbtCheck scalafmtCheckAll +test | |
- run: rm -rf "$HOME/.ivy2/local" || true |