forked from wjlow/intro-to-scala
-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (28 loc) · 768 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on:
push:
jobs:
jvm:
strategy:
fail-fast: true
matrix:
java: [11, 17]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
with:
java-version: "openjdk@1.${{ matrix.java }}"
- run: sbt Test/compile
- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
~/AppData/Local/Coursier/Cache/v1
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}