-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: github action + scalafmt update + dummy test
- Loading branch information
Dennis Madsen
authored
Mar 11, 2024
1 parent
f25acb3
commit 54c2ae7
Showing
54 changed files
with
727 additions
and
682 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Scala CI | ||
|
||
on: | ||
push: | ||
branches: [ main, release* ] | ||
pull_request: | ||
branches: [ main, release* ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 11 | ||
- name: Run tests | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libopengl0 | ||
sbt -Djava.awt.headless=true +compile test | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Formatting | ||
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck |
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
version = "3.5.3" | ||
maxColumn = 120 | ||
align = true | ||
align.preset = more | ||
version=3.8.0 | ||
project.git = true | ||
runner.dialect = scala3 | ||
align.openParenCallSite = true | ||
align.openParenDefnSite = true | ||
maxColumn = 120 | ||
continuationIndent.defnSite = 2 | ||
assumeStandardLibraryStripMargin = true | ||
danglingParentheses.preset = true | ||
rewrite.rules = [SortImports, SortModifiers] | ||
docstrings.style = Asterisk | ||
|
||
onTestFailure = "To fix this, run: sbt scalafmtAll" |
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
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
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
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
Oops, something went wrong.