From 12eea969716166038006c8676ad0e8705e1d526d Mon Sep 17 00:00:00 2001 From: Roberto Tyley Date: Sun, 11 Dec 2022 10:50:03 +0000 Subject: [PATCH] Use `setup-java` support for sbt-caching https://github.com/actions/setup-java#caching-sbt-dependencies See https://github.com/actions/setup-java/pull/302 - it looks like the sbt-caching functionality was informed by https://github.com/coursier/cache-action (see https://github.com/actions/setup-java/pull/302#discussion_r834292851 ), so setup-java may now be the 'best' solution. --- .github/workflows/ci.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3980113..daa8d22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,15 +10,16 @@ on: - main jobs: - sbt-build: + test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: coursier/cache-action@v6 - - uses: olafurpg/setup-scala@v11 + - name: Checkout + uses: actions/checkout@v3 + - name: Setup JDK + uses: actions/setup-java@v3 with: - java-version: adopt@1.11 + distribution: temurin + java-version: 11 + cache: sbt - name: Build and Test - env: - PROUT_GITHUB_ACCESS_TOKEN: ${{ secrets.PROUT_GITHUB_ACCESS_TOKEN }} - run: sbt test \ No newline at end of file + run: sbt -v test \ No newline at end of file