-
Notifications
You must be signed in to change notification settings - Fork 65
37 lines (35 loc) · 890 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
31
32
33
34
35
36
37
name: CI
on:
push:
branches: [ master, main, series/* ]
pull_request:
branches: [ master, main, series/* ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [1.8, 1.11, 1.14]
scala: [2.12.14, 2.13.6]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Coursier
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: sbt-coursier-cache
- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: sbt-${{ hashFiles('**/build.sbt') }}
- name: Run Compile
run: sbt ++${{ matrix.scala }} compile
- name: Run Test
run: sbt ++${{ matrix.scala }} test
- name: Scaladoc
run: sbt ++${{ matrix.scala }} doc