-
-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (37 loc) · 1.04 KB
/
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
38
39
40
41
42
name: Validate PR
on:
push:
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# setup cache
- name: "Running shasum for cache invalidation"
run: |
shasum build.sbt \
project/plugins.sbt \
project/build.properties > gha.cache.tmp
- name: Loading ivy cache
uses: actions/cache@v1
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-ivy-${{ hashFiles('gha.cache.tmp') }}
restore-keys: |
${{ runner.os }}-ivy-
- name: Loading coursier cache
uses: actions/cache@v1
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-coursier-${{ hashFiles('gha.cache.tmp') }}
restore-keys: |
${{ runner.os }}-coursier-
# setup JDK
- name: Set up Azul JDK 1.8 and SBT
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
# run validation
- name: Validate
run: sbt "^validate"