* update github actions due to warnings about nodejs version * use sbtx instead of sbt because sbtx supports -jvm-opts
24 lines
505 B
YAML
24 lines
505 B
YAML
name: Scalafmt
|
|
|
|
permissions: read-all
|
|
|
|
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.6.1'
|
|
arguments: '--list --mode diff-ref=origin/main'
|