Skip to content

Commit c30627c

Browse files
committed
CI: set up JDK 11
1 parent 1e66e08 commit c30627c

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121

22+
- name: Set up JDK
23+
uses: actions/setup-java@v4
24+
with:
25+
distribution: 'corretto'
26+
java-version: '11'
27+
cache: 'sbt'
28+
2229
- name: Set up SBT
2330
uses: sbt/setup-sbt@v1
2431

25-
- name: SBT Cache
26-
uses: actions/cache@v4
27-
with:
28-
path: |
29-
~/.ivy2/cache
30-
~/.sbt
31-
key: main.${{ runner.os }}.sbt.${{ hashFiles('**/*.sbt') }}+${{ hashFiles('project/build.properties') }}
32-
3332
- name: Build
3433
run: sbt dist

.github/workflows/test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,16 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@v2
4444

45+
- name: Set up JDK
46+
uses: actions/setup-java@v4
47+
with:
48+
distribution: 'corretto'
49+
java-version: '11'
50+
cache: 'sbt'
51+
4552
- name: Set up SBT
4653
uses: sbt/setup-sbt@v1
4754

48-
- name: SBT Cache
49-
uses: actions/cache@v4
50-
with:
51-
path: |
52-
~/.ivy2/cache
53-
~/.sbt
54-
key: test.${{ runner.os }}.sbt.${{ hashFiles('**/*.sbt') }}+${{ hashFiles('project/build.properties') }}
55-
5655
- name: Database Setup
5756
run: psql postgresql://horta:hell@localhost/loglist -c 'create extension pgcrypto;'
5857

0 commit comments

Comments
 (0)