pekko/.github/workflows/format.yml
Marco Zühlke cda63179fc
Remove hard-coded scalafmt version (#901)
Since `scalafmt-native-action v3` the scalafmt version will be picked up from the `.scalafmt.conf` file.

Co-authored-by: PJ Fanning <pjfanning@users.noreply.github.com>
2024-01-04 10:40:53 +01:00

23 lines
472 B
YAML

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@v4
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'