Skip to content

Commit 2a1ca11

Browse files
committed
Install sbt for GitHub Actions on ubuntu-latest
1 parent 5e6acea commit 2a1ca11

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/DependencyUpdate.yml

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jobs:
1717
app_id: ${{ secrets.APP_ID }}
1818
private_key: ${{ secrets.APP_PRIVATE_KEY }}
1919

20+
- name: Install sbt
21+
run: |
22+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
23+
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
24+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
25+
sudo apt-get update
26+
sudo apt-get install sbt
27+
2028
- name: Launch Scala Steward
2129
uses: scala-steward-org/scala-steward-action@v2
2230
with:

.github/workflows/Test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
distribution: 'temurin'
2424
cache: 'sbt'
2525

26+
- name: Install sbt
27+
run: |
28+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
29+
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
30+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
31+
sudo apt-get update
32+
sudo apt-get install sbt
33+
2634
- name: Run tests and create coverage report
2735
run: sbt clean coverage test assembly coverageReport
2836

0 commit comments

Comments
 (0)