I am using default https://github.com/actions/starter-workflows/blob/master/ci/scala.yml for project based on playframework. But CI is failing with error. It is not able to find play while previous step of sbt installation went well.
Error:
[info] Updated file /home/runner/work/bento/bento/project/build.properties: set sbt.version to 1.3.8
[info] Loading project definition from /home/runner/work/bento/bento/project
/home/runner/work/bento/bento/build.sbt:1: error: not found: object play
import play.sbt.PlayImport
^
/home/runner/work/bento/bento/build.sbt:15: error: not found: value PlayScala
lazy val root = (project in file(".")).enablePlugins(PlayScala)
^
/home/runner/work/bento/bento/build.sbt:18: error: not found: value ws
ws,
^
/home/runner/work/bento/bento/build.sbt:19: error: not found: value guice
guice,
^
[error] sbt.compiler.EvalException: Type error in expression
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
##[error]Process completed with exit code 1.
scala.yml:
name: Scala CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run tests
run: sbt clean test