Skip to content

Commit 556743e

Browse files
committed
cache ivy downloads
1 parent 62e2f65 commit 556743e

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,21 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v1
18-
with:
19-
java-version: 1.8
20-
- name: Run tests
21-
run: sbt test
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Set up JDK 1.8
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 1.8
22+
23+
- name: Cache SBT
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
~/.ivy2/cache
28+
~/.sbt
29+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt', '**/plugins.sbt') }}
30+
31+
- name: Run tests
32+
run: sbt test

0 commit comments

Comments
 (0)