Skip to content

Github Actions support for building SBT projects

Notifications You must be signed in to change notification settings

jetbridge/github-action-sbt

 
 

Repository files navigation

SBT github action

This action runs sbt build commands

Inputs

commands

Required a set of space seperated sbt commands. Default "test".

sbt_project_directory

a relative path to the directory containing your project build.sbt

not needed unless your build.sbt is not in the root of your repository

settings_sbt

The contents of a file that will be writen to {sbt_project_directory}/github_action_sbt_settings.sbt

This is useful for setting repositories, credentials, etc

Outputs

none

Action Tags

The tag controls the version of Java, SBT, and Scala that the image is initialized with. SBT and Scala will auto-download other versions as specified in your project settings, but if they don't match the initialized versions, it can take significant extra build time.

The tag format is {JAVA_VERSION}-{SBT_VERSION}-{SCALA_VERSION}

master branch is currently the same as 8-1.3.0-2.13.0

Currently supported tags are:

JAVA_VERSIONS=("8" "11" "14")
SBT_VERSIONS=("0.13.17" "1.1.6" "1.2.8" "1.3.0")
SCALA_VERSIONS=("2.13.0" "2.12.10" "2.11.12" "2.10.7")

Feel free to request additional tags.

Example usage

This example demonstrates advanced usage, including configuring a project to deploy to the GitHub Packages repository using SBT

- name: SBT action test
  id: sbt
  uses: lokkju/github-action-sbt@master
  with:
    commands: test
    sbt_project_directory: ./test

About

Github Actions support for building SBT projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 53.7%
  • Dockerfile 30.6%
  • Scala 15.7%