diff --git a/.github/workflows/build-sanpshot.yml b/.github/workflows/build-sanpshot.yml index 52250b46..99e63842 100644 --- a/.github/workflows/build-sanpshot.yml +++ b/.github/workflows/build-sanpshot.yml @@ -10,6 +10,25 @@ on: - README.md jobs: + windows-build-job: + runs-on: windows-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up JDK 11 ('zulu') + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '11' + - name: Build and test with Gradle + run: gradlew.bat clean build test + - name: Upload test report + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-report + path: build/reports/tests/test + overwrite: true build-job: uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main with: diff --git a/src/main/kotlin/com/exactpro/th2/common/schema/factory/ExactproMetaInf.kt b/src/main/kotlin/com/exactpro/th2/common/schema/factory/ExactproMetaInf.kt index 919fff34..f3eaf34f 100644 --- a/src/main/kotlin/com/exactpro/th2/common/schema/factory/ExactproMetaInf.kt +++ b/src/main/kotlin/com/exactpro/th2/common/schema/factory/ExactproMetaInf.kt @@ -113,7 +113,7 @@ internal class ExactproMetaInf( } internal fun URL.toPath(): Path = when (protocol) { - "jar" -> URL(file).toPath() // the code below are added to provide windows compatibility + "jar" -> URL(file).toPath() // this code is added to provide windows compatibility "file" -> Path.of(path) else -> error("The '$protocol' protocol of '$this' URL can't be handled") }