You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2022/07/22 21:23:37 UTC

[GitHub] [tinkerpop] L0Lmaker commented on a diff in pull request #1766: Fix dotnet tests for Windows GHA

L0Lmaker commented on code in PR #1766:
URL: https://github.com/apache/tinkerpop/pull/1766#discussion_r927996317


##########
.github/workflows/build-test.yml:
##########
@@ -187,7 +187,10 @@ jobs:
     name: .NET
     timeout-minutes: 20
     needs: smoke
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, windows-latest]

Review Comment:
   Windows build will fail at touch command, suggestion for `dotnet` workflow:
   ```
   dotnet:
       name: .NET
       timeout-minutes: 20
       needs: smoke
       runs-on: ${{ matrix.os }}
       strategy:
         matrix:
           os: [ windows-latest ]
       steps:
         - uses: actions/checkout@v3
         - name: Set up JDK11
           uses: actions/setup-java@v3
           with:
             java-version: '11'
             distribution: 'temurin'
         - name: Set up .NET 6.0.x
           uses: actions/setup-dotnet@v2
           with:
             dotnet-version: '6.0.x'
         - name: Create .glv files - Ubuntu
           if: contains(matrix.os, 'ubuntu')
           run: |
             touch gremlin-dotnet/src/.glv
             touch gremlin-dotnet/test/.glv
         - name: Create .glv files - Windows
           if: contains(matrix.os, 'windows')
           run: |
             echo $null >> gremlin-dotnet/src/.glv
             echo $null >> gremlin-dotnet/test/.glv
         - name: Build with Maven
           run: |
             mvn clean install -pl -:gremlin-javascript,-:gremlin-python,-:gremlint -q -DskipTests -Dci
             mvn verify -pl :gremlin-dotnet,:gremlin-dotnet-tests -P gremlin-dotnet -DincludeNeo4j
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org