build: add windows host for build tests
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
* text=auto eol=lf
|
||||||
|
|
||||||
|
*.java text eol=lf diff=java
|
||||||
|
*.kt text eol=lf diff=kotlin
|
||||||
|
*.kts text eol=lf diff=kotlin
|
||||||
|
|
||||||
|
gradlew text eol=lf
|
||||||
|
|
||||||
|
*.bat text eol=crlf
|
||||||
|
|
||||||
|
*.png binary
|
||||||
|
*.jar binary
|
||||||
@@ -8,7 +8,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubuntu-latest, windows-latest ]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
checkstyle
|
checkstyle
|
||||||
@@ -46,6 +48,10 @@ tasks {
|
|||||||
test {
|
test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
maxParallelForks = Runtime.getRuntime().availableProcessors()
|
maxParallelForks = Runtime.getRuntime().availableProcessors()
|
||||||
testLogging.showExceptions = true
|
testLogging {
|
||||||
|
showExceptions = true
|
||||||
|
exceptionFormat = TestExceptionFormat.FULL
|
||||||
|
showCauses = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class ScriptServicesTest {
|
|||||||
val script = getSampleScript(name)
|
val script = getSampleScript(name)
|
||||||
val idx = script.indexOf("jadx.log.info")
|
val idx = script.indexOf("jadx.log.info")
|
||||||
val completePos = idx + 7 // jadx.lo| <- complete 'log'
|
val completePos = idx + 7 // jadx.lo| <- complete 'log'
|
||||||
val curScript = script.removeRange(completePos, script.indexOf("\n", idx))
|
val curScript = script.substring(0, completePos)
|
||||||
|
|
||||||
val result = ScriptServices().complete(name, curScript, completePos)
|
val result = ScriptServices().complete(name, curScript, completePos)
|
||||||
println(result)
|
println(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user