pekko/.github/workflows/format.yml
PJ Fanning f358df1c86
replace use of unmaintained setup-scala action (#148)
* replace use of unmaintained setup-scala scation

* try setting gha permissions
2023-02-07 16:34:49 +01:00

24 lines
499 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@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Check project is formatted
uses: jrouly/scalafmt-native-action@v2
with:
version: '3.7.1'
arguments: '--list --mode diff-ref=origin/main'