Skip to content

Commit

Permalink
Uses the Guardian's setup-scala action to provide Java, Scala and s…
Browse files Browse the repository at this point in the history
…bt, following the removal of sbt from Github's base images.

See [prior example](guardian/amiable#738).

Also adds a `.tool-versions` file specifying the version of Java to use in the action, and removes the old `.java-version` file because afaict it was only being used by the `setup-java` action that's been removed above.
  • Loading branch information
bryophyta committed Jan 6, 2025
1 parent 981d7ca commit ccd8abf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ jobs:
cache-dependency-path: "./package-lock.json"
node-version-file: ".nvmrc"

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version-file: ".java-version"
distribution: "corretto"
cache: "sbt"
# See https://github.com/guardian/setup-scala
- name: Setup Java and sbt
uses: guardian/setup-scala@v1

- name: Lint and test
run: |
Expand Down
1 change: 0 additions & 1 deletion .java-version

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java corretto-17.0.13

0 comments on commit ccd8abf

Please sign in to comment.