-
Notifications
You must be signed in to change notification settings - Fork 32
45 lines (37 loc) · 1.13 KB
/
scala.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Scala CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# FIXME Use stable scala version
scala: [2.13.13, 3.3.0]
steps:
- uses: actions/checkout@v3
- 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