tiagobento commented on code in PR #3348:
URL: 
https://github.com/apache/incubator-kie-tools/pull/3348#discussion_r2524109445


##########
.github/actions/bootstrap/action.yml:
##########
@@ -45,8 +45,29 @@ runs:
         cd ${{ inputs.working_dir }}
         df -h .
 
+    - name: "Calculate drools-and-kogito cache key"
+      id: drools_and_kogito_cache_key
+      env:
+        DROOLS_AND_KOGITO__skip: true
+      shell: bash
+      run: |
+        cd ${{ inputs.working_dir }}
+        pnpm bootstrap -F @kie-tools-core/drools-and-kogito...
+        key=$(node packages/drools-and-kogito/getCICacheKey.js)
+        echo "Drools and Kogito cache key: $key"
+        echo "key=$key" >> "$GITHUB_OUTPUT"
+
+    - name: "Cache drools-and-kogito dist folder"
+      id: drools_and_kogito_cache
+      uses: actions/cache@v4
+      with:
+        path: ${{ inputs.working_dir }}/packages/drools-and-kogito/dist

Review Comment:
   Can we add a comment here explicitly linking this caching strategy to the 
`use-maven-repo-local-tail` profile defined in `maven-base`?
   
   This profile makes our Maven builds "install" Maven-based packages to their 
respective `dist/` directories, not polluting the global `~/.m2/repo` directory 
with 1st party modules, and making sure we don't have the build order hiding 
missing dependencies in `package.json` files.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to