Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
code

GitHub Action

scalafmt-native-action

v1

scalafmt-native-action

code

scalafmt-native-action

GitHub action to run scalafmt-native

Installation

Copy and paste the following snippet into your .yml file.

              

- name: scalafmt-native-action

uses: jrouly/scalafmt-native-action@v1

Learn more about this action in jrouly/scalafmt-native-action

Choose a version

scalafmt-native GitHub Action

CI status badge Release status badge

GitHub action to run scalafmt-native.

Usage

- uses: jrouly/scalafmt-native-action@v1
  with:
    # Optional: Which version of scalafmt-native to use.
    # Default: 2.7.5
    version: '2.7.5'

    # Optional: Arguments to be passed to scalafmt-native.
    # Default: --list
    arguments: '--list'

Default usage

Without any parameters, this action will run scalafmt-native --list. If any non-conforming files are present, they will be printed and the command will exit with a failure. Otherwise it will silently exit with success.

- uses: jrouly/scalafmt-native-action@v1

OS compatibility

scalafmt-native is not available for Windows. Can only be run on Linux and MacOS.

Credits

Inspired by the design and usage patterns of olafurpg/setup-scala.

Similar to openlawteam/scalafmt-ci but does not pin the version of the action to a specific version of scalafmt.

Similar to AvaPL/scalafmt-native-formatter but leverages the GitHub actions TypeScript SDK for logging and testing.