Skip to content

Commit

Permalink
Add checking for scalafmt conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajkapica committed Jun 22, 2024
1 parent d12d5fc commit 6efbc12
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ jobs:
with:
sparse-checkout: 'api'
- run: "find ./api -maxdepth 1 -mindepth 1 -exec mv {} . \\; && rm -r ./api"
- uses: coursier/[email protected]
- uses: VirtusLab/[email protected]
- name: Check for scalafmt conformance
run: |
curl -fL "https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-pc-linux.gz" | gzip -d > cs
chmod +x cs
cs install scalafmt
./cs scalafmt --check
scala-cli fmt --check . || (
echo "To format code run"
echo " scala-cli fmt ."
exit 1
)
- name: Setup JDK
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 6efbc12

Please sign in to comment.