File tree Expand file tree Collapse file tree 3 files changed +24
-11
lines changed
requests/test/src/requests Expand file tree Collapse file tree 3 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " monthly"
Original file line number Diff line number Diff line change 1313jobs :
1414 test :
1515 runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ java : ['8', '17']
1619 steps :
17- - uses : actions/checkout@v2
18- - uses : actions/setup-java@v1
20+ - uses : actions/checkout@v3
21+ - uses : actions/setup-java@v3
1922 with :
20- java-version : 8
23+ distribution : ' temurin'
24+ java-version : ${{ matrix.java }}
2125 - name : Run tests
2226 run : ./mill -i all __.publishArtifacts __.test
27+
2328 check-binary-compatibility :
2429 runs-on : ubuntu-latest
2530 steps :
26- - uses : actions/checkout@v2
31+ - uses : actions/checkout@v3
2732 with :
2833 fetch-depth : 0
29- - uses : actions/setup-java@v1
34+ - uses : actions/setup-java@v3
3035 with :
36+ distribution : ' temurin'
3137 java-version : 8
3238 - name : Check Binary Compatibility
3339 run : ./mill -i __.mimaReportBinaryIssues
4551 LC_MESSAGES : " en_US.UTF-8"
4652 LC_ALL : " en_US.UTF-8"
4753 steps :
48- - uses : actions/checkout@v2
49- - uses : actions/setup-java@v1
54+ - uses : actions/checkout@v3
55+ - uses : actions/setup-java@v3
5056 with :
57+ distribution : ' temurin'
5158 java-version : 8
5259 - name : Publish to Maven Central
5360 run : |
Original file line number Diff line number Diff line change @@ -191,16 +191,15 @@ object RequestTests extends TestSuite{
191191 compress = requests.Compress .Gzip ,
192192 data = new RequestBlob .ByteSourceRequestBlob (" I am cow" )
193193 )
194- assert(read(new String (res2.bytes))(" data" ).toString ==
195- """ "data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA=="""" )
194+ assert(read(new String (res2.bytes))(" data" ).toString.contains(" data:application/octet-stream;base64,H4sIAAAAAA" ))
196195
197196 val res3 = requests.post(
198197 " https://httpbin.org/post" ,
199198 compress = requests.Compress .Deflate ,
200199 data = new RequestBlob .ByteSourceRequestBlob (" Hear me moo" )
201200 )
202- assert(read(new String (res2 .bytes))(" data" ).toString ==
203- """ "data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA =="""" )
201+ assert(read(new String (res3 .bytes))(" data" ).toString ==
202+ """ "data:application/octet-stream;base64,eJzzSE0sUshNVcjNzwcAFokD3g =="""" )
204203 }
205204
206205 test(" headers" ){
You can’t perform that action at this time.
0 commit comments