use setup-java
instead of setup-scala
#41
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: | |
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@v2 | |
- name: Setup | |
uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: ${{ matrix.java }} | |
- name: Coursier cache | |
uses: coursier/cache-action@v5 | |
- name: Build and test | |
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck +test | |
- run: rm -rf "$HOME/.ivy2/local" || true |