Skip to content

Commit

Permalink
Add scalafmt github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich authored and rolandtritsch committed Oct 1, 2024
1 parent f37dea6 commit cef3625
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Scalafmt

permissions: {}

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

jobs:
build:
name: Code is formatted
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false

- name: Check project is formatted
uses: jrouly/scalafmt-native-action@v3
with:
arguments: '--list --mode diff-ref=origin/main'

0 comments on commit cef3625

Please sign in to comment.