erickguan commented on code in PR #6293:
URL: https://github.com/apache/opendal/pull/6293#discussion_r2157461589


##########
.github/workflows/test_behavior_binding_go.yml:
##########
@@ -28,37 +28,24 @@ on:
         type: string
 
 jobs:
-  set-build:
-    runs-on: ubuntu-latest
-    outputs:
-      build: ${{ steps.set-matrix-build.outputs.build }}
-    steps:
-      - uses: actions/checkout@v4
-      - id: set-matrix-build
-        name: Setup Matrix Build
-        run: |
-          MATRIX=$(yq -o=json -I=0 '[.build[] | select(.os == "${{ inputs.os 
}}")]' .github/scripts/test_go_binding/matrix.yaml | sed 's/ //g')
-          echo "Matrix:"
-          echo "$MATRIX" | jq .
-          echo "build=$MATRIX" >> $GITHUB_OUTPUT
-
   test:
-    needs: [set-build]
     name: ${{ matrix.cases.service }} / ${{ matrix.cases.setup }}
     runs-on: ${{ inputs.os }}
     strategy:
       fail-fast: false
       matrix:
         cases: ${{ fromJson(inputs.cases) }}
-        build: ${{ fromJson(needs.set-build.outputs.build) }}
     steps:
       - uses: actions/checkout@v4
+      - uses: actions/checkout@v4
+        with:
+          path: "opendal"

Review Comment:
   The default `github.workspace` is usually `/home/runner/_work` where a file 
system mounts there.
   
   The only way to load side by side is:
   
   ```
   steps:
     - uses: actions/checkout@v4
       with:
         path: opendal
     - uses: actions/checkout@v4
       with: 
         repository: "apache/opendal-go-services"
         path: opendal-go-services
   ```
   
   When using actions, the path is relative to `${{ github.workspace }}`. The 
working directory remains unchanged. It also implies after setting 
`working-directory`, when using actions, any paths is still relative to `${{ 
github.workspace }}`.
   
   So:
   
   ```
   jobs:
     test:
       # ... 
       defaults:
         working-directory: opendal
       
       steps:
         - uses: actions/checkout@v4
           with:
             path: opendal
         - uses: actions/checkout@v4
           with: 
             repository: "apache/opendal-go-services"
             path: "opendal-go-services"
   ```



-- 
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-unsubscr...@opendal.apache.org

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

Reply via email to