Skip to content

Commit

Permalink
Use setup-java support for sbt-caching
Browse files Browse the repository at this point in the history
https://github.com/actions/setup-java#caching-sbt-dependencies

See actions/setup-java#302 - it looks like the
sbt-caching functionality was informed by
https://github.com/coursier/cache-action (see
actions/setup-java#302 (comment) ),
so setup-java may now be the 'best' solution.
  • Loading branch information
rtyley committed Dec 11, 2022
1 parent 183a8b9 commit 12eea96
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: sbt -v test

0 comments on commit 12eea96

Please sign in to comment.