-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checking for scalafmt conformance
- Loading branch information
1 parent
d12d5fc
commit 6efbc12
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|