File tree 3 files changed +46
-34
lines changed
3 files changed +46
-34
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.28' || '' }}"
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - uses : olafurpg/setup-scala@v10
25
+ with :
26
+ java-version : " adopt@1.8"
27
+ - uses : coursier/cache-action@v5
28
+ - name : Build
29
+ run : sbt "++${{ matrix.scalaversion }}" package
30
+ - name : Test generate documentation
31
+ run : sbt "++${{ matrix.scalaversion }}" doc
32
+ - name : Build examples
33
+ run : sbt "++${{ matrix.scalaversion }}" example/compile
34
+ - name : scalafmt
35
+ run : sbt "++${{ matrix.scalaversion }}" scalafmtCheck
36
+ readme :
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - uses : actions/checkout@v2
40
+ - uses : olafurpg/setup-scala@v10
41
+ with :
42
+ java-version : " adopt@1.8"
43
+ - uses : coursier/cache-action@v5
44
+ - name : Readme generation
45
+ run : sbt readme/run
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
You can’t perform that action at this time.
0 commit comments