scala: command not found


According to documentation, ubunto 18-04 should already have Scala installed on:

but when I run a simple test that check scala version on machine, I can see that it doesn’t.

This is my workflow:

name: Test

on: [pull_request]

    runs-on: ubuntu-latest

      - name: scalaVe
        run: scala -version

Run log:

2019-09-25T18:49:21.9369825Z Current runner version: '2.158.0'
2019-09-25T18:49:21.9390101Z Prepare workflow directory
2019-09-25T18:49:22.0718787Z Prepare all required actions
2019-09-25T18:49:22.2462685Z ##[group] **Run scala -version** 2019-09-25T18:49:22.2542982Z [36;1mscala -version[0m
2019-09-25T18:49:23.1421170Z shell: /bin/bash -e {0}
2019-09-25T18:49:23.1421387Z ##[endgroup]
2019-09-25T18:49:23.2092022Z /home/runner/work/_temp/ line 1: **scala: command not found** 2019-09-25T18:49:23.2170876Z ##[error]Process completed with exit code 127.
2019-09-25T18:49:23.2350931Z Cleaning up orphan processes

There was a PR merged in yesterday updating sbt to improve the scala support I am not sure when that is going to rollout to the GitHub Runners but you can ask over at