Skip to content

Set up cljstyle (Clojure code formatter)

License

Notifications You must be signed in to change notification settings

0918nobita/setup-cljstyle

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-cljstyle

Install cljstyle

Available on Marketplace · Usage · Development Guide

Lint   Test


Usage

steps:
  - uses: actions/checkout@v2
  - uses: 0918nobita/setup-cljstyle@v0.5.4
  - run: cljstyle version
  - run: cljstyle check

Inputs

cljstyle-version

Optional If omitted, the latest version of cljstyle will be installed.

Example :

steps:
  - uses: actions/checkout@v2
  - uses: 0918nobita/setup-cljstyle@v0.5.4
    with:
      cljstyle-version: "0.15.0"
  - run: cljstyle version # => mvxcvi/cljstyle 0.15.0 (...)

token

Optional Default is ${{ github.token }}.

run-check

Optional (default: false) If specified, run cljstyle check --verbose after installing cljstyle.

Example :

steps:
  - uses: actions/checkout@v2
  - uses: 0918nobita/setup-cljstyle@v0.5.4
    with:
      run-check: true

Supported runners

  • windows-latest
  • macos-latest
  • ubuntu-latest