File tree 3 files changed +38
-32
lines changed
3 files changed +38
-32
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ scalaversion : ["2.11.12", "2.12.10", "2.13.1"]
16
+ scalajsversion : ["1.x", "0.6.x"]
17
+ include :
18
+ - scalaversion : " 2.10.7"
19
+ scalajsversion : " 0.6.x"
20
+ env :
21
+ SCALAJS_VERSION : " ${{ matrix.scalajsversion == '0.6.x' && '0.6.31' || '' }}"
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - uses : olafurpg/setup-scala@v10
25
+ with :
26
+
27
+ - uses : coursier/cache-action@v5
28
+ - name : Scalastyle
29
+ run : sbt "++${{ matrix.scalaversion }}" root/scalastyle testSuiteJVM/scalastyle testSuiteJVM/test:scalastyle testSuiteJS/scalastyle testSuiteJS/test:scalastyle
30
+ - name : Test JVM
31
+ run : sbt "++${{ matrix.scalaversion }}" testSuiteJVM/test
32
+ - name : Test JS
33
+ run : sbt "++${{ matrix.scalaversion }}" testSuiteJS/test
34
+ - name : Test JS fullOpt
35
+ run : sbt "++${{ matrix.scalaversion }}" 'set scalaJSStage in Global := FullOptStage' testSuiteJS/test
36
+ - name : Test publish
37
+ run : sbt "++${{ matrix.scalaversion }}" publishLocal
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
val scalaJSVersion =
2
- Option (System .getenv(" SCALAJS_VERSION" )).getOrElse(" 1.0.0" )
2
+ Option (System .getenv(" SCALAJS_VERSION" )).filter(_ != " " ). getOrElse(" 1.0.0" )
3
3
4
4
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % scalaJSVersion)
5
5
addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 0.6.1" )
You can’t perform that action at this time.
0 commit comments