-
Notifications
You must be signed in to change notification settings - Fork 127
41 lines (37 loc) · 897 Bytes
/
test.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: CI
on:
pull_request:
branches: ['*']
jobs:
build:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest]
java:
- 8
- 11
- 17
# - graalvm-ce-java11@20.3.0
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: temurin # See 'Supported distributions' for available options
java-version: ${{ matrix.java }}
check-latest: true
- name: Restore cache
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.cache/coursier
key: cache-v1-${{ hashFiles('build.sbt') }}
restore-keys: |
cache-v1-
- name: Compile and Test
run: sbt +test