From 2a1ca11e260cf361135bd857237835f2597ab483 Mon Sep 17 00:00:00 2001 From: yokra9 <53964890+yokra9@users.noreply.github.com> Date: Sat, 28 Sep 2024 05:57:34 +0000 Subject: [PATCH] Install sbt for GitHub Actions on ubuntu-latest --- .github/workflows/DependencyUpdate.yml | 8 ++++++++ .github/workflows/Test.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/DependencyUpdate.yml b/.github/workflows/DependencyUpdate.yml index 947a775..2d973c9 100644 --- a/.github/workflows/DependencyUpdate.yml +++ b/.github/workflows/DependencyUpdate.yml @@ -17,6 +17,14 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Install sbt + run: | + echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list + echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list + curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add + sudo apt-get update + sudo apt-get install sbt + - name: Launch Scala Steward uses: scala-steward-org/scala-steward-action@v2 with: diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 307661a..4e22dcb 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -23,6 +23,14 @@ jobs: distribution: 'temurin' cache: 'sbt' + - name: Install sbt + run: | + echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list + echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list + curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add + sudo apt-get update + sudo apt-get install sbt + - name: Run tests and create coverage report run: sbt clean coverage test assembly coverageReport