pekko/.github/workflows/format.yml
2024-05-12 12:09:26 +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@v4
with:
arguments: '--list --mode diff-ref=origin/main'