File tree Expand file tree Collapse file tree 2 files changed +36
-25
lines changed
Expand file tree Collapse file tree 2 files changed +36
-25
lines changed Original file line number Diff line number Diff line change 11name : CI
2+
23on :
34 pull_request :
5+ branches :
6+ - ' **'
47 push :
8+ branches :
9+ - main
10+
11+ concurrency :
12+ group : " ${{ github.workflow }}-${{ github.ref }}"
13+ cancel-in-progress : true
14+
515jobs :
16+ lint :
17+ runs-on : ubuntu-latest
18+ env :
19+ # define Java options for both official sbt and sbt-extras
20+ JAVA_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
21+ JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
22+ steps :
23+ - uses : actions/checkout@v4
24+ - uses : actions/setup-java@v4
25+ with :
26+ distribution : temurin
27+ java-version : 21
28+ cache : sbt
29+ - name : ' Run Scalafmt'
30+ run : sbt -v ++3.4.2 scalafmtSbt scalafmtAll
631 test :
732 strategy :
833 fail-fast : false
934 matrix :
10- name : [ "test" ]
11- scala : [ 3.3.0, 3.4.1 ]
35+ scala : [ 3.3.0, 3.4.2 ]
1236 java : [ 20, 21 ]
13- include :
14- - name : " format"
15- scala : 3.4.1
16- java : 21
1737 exclude :
18- - name : " test"
19- scala : 3.3.0
38+ - scala : 3.3.0
2039 java : 21
2140 runs-on : ubuntu-latest
41+ env :
42+ # define Java options for both official sbt and sbt-extras
43+ JAVA_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
44+ JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
2245 steps :
2346 - uses : actions/checkout@v4
24- - uses : actions/setup-java@v3
47+ - uses : actions/setup-java@v4
2548 with :
2649 distribution : temurin
2750 java-version : ${{ matrix.java }}
2851 cache : sbt
29- - shell : bash
30- run : |
31- case ${{ matrix.name }} in
32- "format")
33- sbt -v ++${{ matrix.scala }} scalafmtSbt scalafmtAll
34- git diff --exit-code
35- ;;
36- "test")
37- sbt -v ++${{ matrix.scala }} test
38- ;;
39- *)
40- echo "unknown job"
41- exit 1
42- esac
52+ - name : ' Run tests'
53+ run : sbt -v ++${{ matrix.scala }} test
Original file line number Diff line number Diff line change 1- lazy val supportedScalaVersions = List (" 3.4.1 " , " 3.3.0" )
1+ lazy val supportedScalaVersions = List (" 3.4.2 " , " 3.3.0" )
22
33lazy val root = project
44 .in(file(" ." ))
@@ -16,6 +16,6 @@ lazy val root = project
1616 " -unchecked" ,
1717 " -Wunused:all"
1818 ),
19- libraryDependencies += " org.scalameta" %% " munit" % " 1.0.0-M11 " % Test ,
19+ libraryDependencies += " org.scalameta" %% " munit" % " 1.0.0" % Test ,
2020 Test / parallelExecution := false
2121 )
You can’t perform that action at this time.
0 commit comments