Skip to content

Commit f04c034

Browse files
authored
github actions: setup sbt (#1799)
also worth noting: we managed to configure three different JDKs for the three builds in this repo... will see how to handle that best
1 parent 9ef1ccb commit f04c034

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
distribution: 'adopt'
2323
java-version: 19
24+
- uses: sbt/setup-sbt@v1
2425
- name: Compile and run tests
2526
run: sbt +test
2627
- name: Check formatting

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
test-codepropertygraph:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313
with:
@@ -22,6 +22,7 @@ jobs:
2222
with:
2323
distribution: 'adopt'
2424
java-version: 19
25+
- uses: sbt/setup-sbt@v1
2526
- name: Check formatting
2627
run: sbt scalafmtCheck Test/scalafmtCheck
2728
- run: echo "Previous step failed because code is not formatted. Run 'sbt scalafmt'"
@@ -36,7 +37,7 @@ jobs:
3637
release:
3738
concurrency: release
3839
needs: [test-codepropertygraph]
39-
runs-on: ubuntu-22.04
40+
runs-on: ubuntu-latest
4041
steps:
4142
- uses: actions/checkout@v4
4243
with:
@@ -57,6 +58,7 @@ jobs:
5758
with:
5859
distribution: 'adopt'
5960
java-version: 11
61+
- uses: sbt/setup-sbt@v1
6062
- name: Release to Sonatype
6163
run: sbt ciReleaseTagNextVersion ciReleaseSonatype
6264
env:

0 commit comments

Comments
 (0)