-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (36 loc) · 996 Bytes
/
branch-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: Branch CI
on:
push:
branches-ignore:
- master
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Cache SBT ivy cache
uses: actions/cache@v2
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('build.sbt') }}
- name: Cache SBT
uses: actions/cache@v2
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('build.sbt') }}
- name: Cache Coursier
uses: actions/cache@v2
with:
path: ~/.cache
key: ${{ runner.os }}-coursier-${{ hashFiles('build.sbt') }}
- name: Cache .jabba
uses: actions/cache@v2
with:
path: ~/.jabba
key: ${{ runner.os }}-jabba-${{ hashFiles('build.sbt') }}
- uses: actions/checkout@v2
- name: Compile and test
run: |
sbt \
compile \
test