41 lines (37 loc) · 1.03 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
name: Scala CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache SBT ivy cache
uses: actions/cache@v1
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-sbt-ivy-cache-
- name: Cache Coursier cache
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-sbt-coursier-cache-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-sbt-coursier-cache-
- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-cache-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-sbt-cache-
- name: Run tests
run: |
sbt -Dplay.version=2.8.1 +test
sbt -Dplay.version=2.7.4 +test
sbt -Dplay.version=2.6.25 +test