Update sbt-sonatype to 3.10.0 #832
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: Scala CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
checkfmt: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache jabba | |
uses: actions/[email protected] | |
with: | |
path: ~/.jabba | |
key: ${{ runner.os }}-jabba-cache-${{ hashFiles('**/workflows/scala.yml') }} | |
- name: Cache SBT ivy cache | |
uses: actions/[email protected] | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }} | |
- name: Cache SBT | |
uses: actions/[email protected] | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- uses: olafurpg/setup-scala@v13 | |
with: | |
java-version: [email protected]=tgz+https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.0.0/graalvm-ce-java11-linux-amd64-21.0.0.tar.gz | |
- name: Check format | |
run: sbt checkfmt | |
test: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
scala: [2.12.15, 2.13.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache jabba | |
uses: actions/[email protected] | |
with: | |
path: ~/.jabba | |
key: ${{ runner.os }}-jabba-cache-${{ hashFiles('**/workflows/scala.yml') }} | |
- name: Cache SBT ivy cache | |
uses: actions/[email protected] | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }} | |
- name: Cache SBT | |
uses: actions/[email protected] | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- uses: olafurpg/setup-scala@v13 | |
with: | |
java-version: [email protected]=tgz+https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.0.0/graalvm-ce-java11-linux-amd64-21.0.0.tar.gz | |
- name: Test | |
run: sbt ++${{matrix.scala}} test | |