File tree Expand file tree Collapse file tree
sjsonnet/test/src-jvm/sjsonnet Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99jobs :
1010 build :
11-
1211 runs-on : ubuntu-latest
1312 strategy :
1413 fail-fast : false
14+ matrix :
15+ lang : ['jvm', 'js', 'native']
16+ java : ['11', '17']
1517 env :
1618 # Set LANG=C to simulate least-common-denominator target deployment environments:
1719 LANG : C
18-
20+ name : Sjsonnet build for ${{ matrix.lang }} on JDK ${{ matrix.java }}
1921 steps :
20- - uses : actions/checkout@v2
21- - name : Set up JDK 11
22- uses : actions/setup-java@v2
22+ - uses : actions/checkout@v4
23+ - name : Set up JDK ${{ matrix.java }}
24+ uses : actions/setup-java@v4
2325 with :
24- java-version : ' 11 '
25- distribution : ' adopt '
26- - name : Run mill tests
27- run : ./mill __ .test
26+ java-version : ${{ matrix.java }}
27+ distribution : ' zulu '
28+ - name : Run mill tests for ${{ matrix.lang }}
29+ run : ./mill _.${{ matrix.lang }}[_] .test
2830 - name : Compile with sbt
31+ if : ${{ matrix.lang == 'jvm' }}
2932 run : sbt compile bench/compile bench/jmh:compile
3033 - name : Run sbt tests
34+ if : ${{ matrix.lang == 'jvm' }}
3135 run : sbt test
Original file line number Diff line number Diff line change @@ -6,8 +6,16 @@ import utest._
66object StdGzipTests extends TestSuite {
77 val tests = Tests {
88 test(" gzip" ){
9- eval(""" std.gzip([1, 2])""" ) ==> ujson.Str (" H4sIAAAAAAAAAGNkAgCSQsy2AgAAAA==" )
10- eval(""" std.gzip("hi")""" ) ==> ujson.Str (" H4sIAAAAAAAAAMvIBACsKpPYAgAAAA==" )
9+ eval(""" std.gzip([1, 2])""" ) ==> ujson.Str (Runtime .version().feature() match {
10+ // https://bugs.openjdk.org/browse/JDK-8244706
11+ case s if s >= 16 => " H4sIAAAAAAAA/2NkAgCSQsy2AgAAAA=="
12+ case _ => " H4sIAAAAAAAAAGNkAgCSQsy2AgAAAA=="
13+ })
14+ eval(""" std.gzip("hi")""" ) ==> ujson.Str (Runtime .version().feature() match {
15+ // https://bugs.openjdk.org/browse/JDK-8244706
16+ case s if s >= 16 => " H4sIAAAAAAAA/8vIBACsKpPYAgAAAA=="
17+ case _ => " H4sIAAAAAAAAAMvIBACsKpPYAgAAAA=="
18+ })
1119 }
1220 }
1321}
You can’t perform that action at this time.
0 commit comments