Merge pull request #217 from laserdisc-io/use-plugin #284
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: | |
branches: | |
- '*' | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Test | |
strategy: | |
matrix: | |
scala: | |
- 2.13.15 | |
- 3.3.4 | |
java: | |
- corretto@1.17 | |
os: | |
- ubuntu-22.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Branch Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Java And Sbt | |
uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
$HOME/.cache/coursier | |
$HOME/.ivy2/cache | |
$HOME/.sbt/boot/ | |
$HOME/.sbt | |
lib_managed | |
target | |
project/target | |
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Test (${{ matrix.scala }}, ${{ matrix.java }}) | |
run: sbt ++${{ matrix.scala }} build | |
- name: Upload To Codecov | |
uses: codecov/codecov-action@v2 | |