diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2069e73f..8a63e5b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,15 +23,29 @@ jobs: name: Event File path: ${{ github.event_path }} + lint: + name: "Linting" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: jrouly/scalafmt-native-action@v2 + with: + version: '3.7.14' + arguments: '--test' + build-jvm: name: "Build JVM" + needs: lint uses: "./.github/workflows/build-jvm.yml" build-snapshots: name: "Build Snapshots" + needs: lint uses: "./.github/workflows/build-snapshots.yml" build-python: name: "Build Python" - needs: build-jvm + needs: [build-jvm, lint] uses: "./.github/workflows/build-python.yml" test-jvm: diff --git a/.scalafmt.conf b/.scalafmt.conf new file mode 100644 index 00000000..67ab917f --- /dev/null +++ b/.scalafmt.conf @@ -0,0 +1,7 @@ +version = 3.7.14 + +runner.dialect = scala213 +rewrite.trailingCommas.style = keep + +maxColumn = 120 +