Skip to content

Commit

Permalink
Replace scalafmtOnCompile with github action (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich authored Apr 11, 2022
1 parent b6d4b14 commit 867db86
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Scalafmt

on:
pull_request:
branches: ['**']

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
name: Code is formatted
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Check project is formatted
uses: jrouly/scalafmt-native-action@v1
with:
version: '3.4.3'
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ organizationName := "Lightbend Inc."
startYear := Some(2018)

enablePlugins(AutomateHeaderPlugin)
scalafmtOnCompile := true

ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches :=
Expand Down

0 comments on commit 867db86

Please sign in to comment.