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

hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks-controller.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 77461f2  Update github actions to latest (#251)
77461f2 is described below

commit 77461f2996b8ec7d5a8e85eb9cd619faf0450c5c
Author: Aleks Lozovyuk <[email protected]>
AuthorDate: Tue Jan 7 14:07:19 2025 +0200

    Update github actions to latest (#251)
---
 .github/workflows/ci.yaml | 32 ++++++++++++++++++++------------
 1 file changed, 20 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index e9bcc4b..08779ea 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -20,26 +20,34 @@ name: CI Actions  # don't edit while the badge was depend 
on this
 on: [push, pull_request]
 
 jobs:
+  license-check:
+    name: License check
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout Code Base
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+
+      - uses: apache/skywalking-eyes/[email protected]
+        with:
+          config: .github/config/licenserc.yaml
   lint:
     name: Lint
     runs-on: ubuntu-latest
     steps:
       - name: Install Go
-        uses: actions/setup-go@v3
+        uses: actions/setup-go@v5
         with:
           go-version: 1.23
 
       - name: Checkout Code Base
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
         with:
           fetch-depth: 0
 
-      - uses: apache/skywalking-eyes/[email protected]
-        with:
-          config: .github/config/licenserc.yaml
-
       - name: Restore Go Module Cache
-        uses: actions/cache@v3
+        uses: actions/cache@v4
         with:
           path: ~/go/pkg/mod
           key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ 
hashFiles('**/go.sum') }}
@@ -55,7 +63,7 @@ jobs:
 
   build-test:
     name: Build and test
-    needs: [lint]
+    needs: [license-check, lint]
     strategy:
       matrix:
         go-version: [1.23, stable]
@@ -63,17 +71,17 @@ jobs:
     runs-on: ${{ matrix.os }}
     steps:
       - name: Install Go
-        uses: actions/setup-go@v3
+        uses: actions/setup-go@v5
         with:
           go-version: ${{matrix.go-version}}
 
       - name: Checkout Code Base
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
         with:
           fetch-depth: 0
 
       - name: Restore Go Module Cache
-        uses: actions/cache@v3
+        uses: actions/cache@v4
         with:
           path: ~/go/pkg/mod
           key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ 
hashFiles('**/go.sum') }}
@@ -87,7 +95,7 @@ jobs:
         run: make test
 
       - name: Upload Coverage Report
-        uses: codecov/codecov-action@v2
+        uses: codecov/codecov-action@v5
         with:
           file: ./coverage.out
           flags: unittests

Reply via email to