This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/develop by this push:
     new d5621ec16 chore: optimize ci (#2904)
d5621ec16 is described below

commit d5621ec162b8bfc738fbb21e20c6a568c4a9b291
Author: marsevilspirit <[email protected]>
AuthorDate: Tue Jun 3 19:31:56 2025 +0800

    chore: optimize ci (#2904)
    
    * delete useless ci
    
    * optimize github action cache
    
    * Update .github/workflows/github-actions.yml
    
    lgtm
    
    Co-authored-by: Copilot <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot <[email protected]>
---
 .github/workflows/github-actions.yml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/github-actions.yml 
b/.github/workflows/github-actions.yml
index 823393a37..cf95080c8 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -36,10 +36,13 @@ jobs:
       uses: actions/checkout@v4
 
     - name: Cache dependencies
+      # ref: https://github.com/actions/cache/blob/main/examples.md#go---module
       uses: actions/cache@v4
       with:
-        # Cache
-        path: ~/go/pkg/mod
+        # Cache, works only on Linux
+        path: |
+          ~/.cache/go-build
+          ~/go/pkg/mod
         # Cache key
         key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
         # An ordered list of keys to use for restoring the cache if no cache 
hit occurred for key
@@ -68,7 +71,7 @@ jobs:
 
     - name: Format code
       run: |
-        go fmt ./... && gofmt -s && git status && [[ -z `git status -s` ]]
+        go fmt ./... && git status && [[ -z `git status -s` ]]
 
     - name: Verify
       run: |
@@ -90,8 +93,3 @@ jobs:
 
     - name: Codecov
       run: bash <(curl -s https://codecov.io/bash)
-
-    - name: Skip SonarCloud analysis
-      run: |
-          echo "Explicitly skipping SonarCloud analysis"
-          echo "SONAR_SKIP=true" >> $GITHUB_ENV

Reply via email to