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>
23 lines
472 B
YAML
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'
|