Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Delegate dependency caching to actions/setup-java
Browse files Browse the repository at this point in the history
It has just gained support via
actions/setup-java#302. See also
https://github.com/actions/setup-java#caching-sbt-dependencies.

Also add type to spec in HeliosSpec.
  • Loading branch information
dhpiggott committed Jul 16, 2022
1 parent ca15679 commit 258e3cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Expand Up @@ -22,18 +22,7 @@ jobs:
with:
distribution: temurin
java-version: 17

- name: Cache sbt
uses: actions/cache@v3.0.5
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
~/AppData/Local/Coursier/Cache/v1
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
cache: sbt

- name: Check that scalafmt has been run
run: sbt 'all scalafmtSbtCheck scalafmtCheckAll'
Expand Down
2 changes: 1 addition & 1 deletion helios/src/test/scala/helios/HeliosSpec.scala
Expand Up @@ -6,7 +6,7 @@ import zio.test.*

object HeliosSpec extends ZIOSpecDefault:

def spec = suite("HeliosSpec")(
def spec: Spec[Any, Throwable] = suite("HeliosSpec")(
test("decideTargetBrightnessAndMirekValues chooses relax for midnight")(
for
_ <- TestSystem.putEnv("TIME_ZONE", "Europe/London")
Expand Down

0 comments on commit 258e3cd

Please sign in to comment.