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

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new ddb3df810e [type: refactor] up actions version to new. (#4992)
ddb3df810e is described below

commit ddb3df810eee65f22e75e144b23d1ae99280b9eb
Author: DamonXue <[email protected]>
AuthorDate: Thu Aug 17 20:19:38 2023 +0800

    [type: refactor] up actions version to new. (#4992)
    
    * up actions version.
    
    * ci.yml
    
    * up actions version + 1.
    
    * java version.
    
    * java version + 1.
    
    * rollback actions/setup-java@v1 for version-os ci.
    
    ---------
    
    Co-authored-by: xiaoyu <[email protected]>
---
 .github/workflows/ci.yml                          | 10 +++++++---
 .github/workflows/codeql-analysis.yml             |  8 +++++---
 .github/workflows/docker-publish-dockerhub.yml    |  6 ++++--
 .github/workflows/docker-publish.yml              |  6 ++++--
 .github/workflows/integrated-test-k8s-ingress.yml |  8 +++++---
 .github/workflows/integrated-test.yml             |  8 +++++---
 .github/workflows/k8s-examples-http.yml           |  8 +++++---
 7 files changed, 35 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0702f69874..f9f948c6c5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,13 +38,15 @@ jobs:
             os: ubuntu-latest
           - java: 16
             os: ubuntu-latest
+          - java: 17
+            os: ubuntu-latest
     runs-on: ${{ matrix.os }}
     if: (github.repository == 'apache/shenyu')
     steps:
       - name: Support longpaths
         if: ${{ matrix.os == 'windows-latest'}}
         run: git config --system core.longpaths true
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           submodules: true
       - uses: dorny/paths-filter@v2
@@ -54,7 +56,7 @@ jobs:
           list-files: json
       - name: Cache Maven Repos
         if: steps.filter.outputs.changed == 'true'
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -64,6 +66,8 @@ jobs:
         if: steps.filter.outputs.changed == 'true'
         with:
           java-version: ${{ matrix.java }}
+          distribution: 'temurin'
+          cache: maven
       - name: Build with Maven
         if: steps.filter.outputs.changed == 'true'
         run: ./mvnw -B clean install -Prelease
@@ -75,7 +79,7 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 10
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           submodules: true
       - name: Check License Header
diff --git a/.github/workflows/codeql-analysis.yml 
b/.github/workflows/codeql-analysis.yml
index fb004c71f0..bd8c7c3a7f 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -38,16 +38,18 @@ jobs:
 
     steps:
       - name: Checkout repository
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
         with:
           submodules: true
       - name: Set up JDK 1.8
-        uses: actions/setup-java@v1
+        uses: actions/setup-java@v3
         with:
           java-version: 1.8
+          distribution: 'temurin'
+          cache: maven
 
       - name: Cache local Maven repository
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
diff --git a/.github/workflows/docker-publish-dockerhub.yml 
b/.github/workflows/docker-publish-dockerhub.yml
index d968343e34..daab353a34 100644
--- a/.github/workflows/docker-publish-dockerhub.yml
+++ b/.github/workflows/docker-publish-dockerhub.yml
@@ -55,16 +55,18 @@ jobs:
         run: echo ${{ steps.buildx.outputs.platforms }}
 
       - name: Cache Maven Repos
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ runner.os }}-maven-
 
-      - uses: actions/setup-java@v1
+      - uses: actions/setup-java@v3
         with:
           java-version: 8
+          distribution: 'temurin'
+          cache: maven
 
       - name: Build with Maven
         run: ./mvnw -B clean -Prelease -Dmaven.javadoc.skip=true -B 
-Drat.skip=true -Djacoco.skip=true -DskipITs -DskipTests package
diff --git a/.github/workflows/docker-publish.yml 
b/.github/workflows/docker-publish.yml
index ae64ac4bec..1c85776571 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -59,16 +59,18 @@ jobs:
         run: echo ${{ steps.buildx.outputs.platforms }}
 
       - name: Cache Maven Repos
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ runner.os }}-maven-
 
-      - uses: actions/setup-java@v1
+      - uses: actions/setup-java@v3
         with:
           java-version: 8
+          distribution: 'temurin'
+          cache: maven
 
       - name: Build with Maven
         run: ./mvnw -B clean -Prelease -Dmaven.javadoc.skip=true -B 
-Drat.skip=true -Djacoco.skip=true -DskipITs -DskipTests package
diff --git a/.github/workflows/integrated-test-k8s-ingress.yml 
b/.github/workflows/integrated-test-k8s-ingress.yml
index 8a0180852b..8d58da0e1f 100644
--- a/.github/workflows/integrated-test-k8s-ingress.yml
+++ b/.github/workflows/integrated-test-k8s-ingress.yml
@@ -26,7 +26,7 @@ jobs:
     runs-on: ubuntu-latest
     if: (github.repository == 'apache/shenyu')
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           submodules: true
 
@@ -50,17 +50,19 @@ jobs:
 
       - name: Cache Maven Repos
         if: steps.filter.outputs.changed == 'true'
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ runner.os }}-maven-
 
-      - uses: actions/setup-java@v1
+      - uses: actions/setup-java@v3
         if: steps.filter.outputs.changed == 'true'
         with:
           java-version: 8
+          distribution: 'temurin'
+          cache: maven
 
       - name: Build with Maven
         if: steps.filter.outputs.changed == 'true'
diff --git a/.github/workflows/integrated-test.yml 
b/.github/workflows/integrated-test.yml
index 9553782dd7..52b9dea79e 100644
--- a/.github/workflows/integrated-test.yml
+++ b/.github/workflows/integrated-test.yml
@@ -42,7 +42,7 @@ jobs:
     runs-on: ubuntu-latest
     if: (github.repository == 'apache/shenyu')
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           submodules: true
       - uses: dorny/paths-filter@v2
@@ -52,16 +52,18 @@ jobs:
           list-files: json
       - name: Cache Maven Repos
         if: steps.filter.outputs.changed == 'true'
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ runner.os }}-maven-
-      - uses: actions/setup-java@v1
+      - uses: actions/setup-java@v3
         if: steps.filter.outputs.changed == 'true'
         with:
           java-version: 8
+          distribution: 'temurin'
+          cache: maven
       - name: Build with Maven
         if: steps.filter.outputs.changed == 'true'
         run: ./mvnw -B clean install -Prelease,docker 
-Dmaven.javadoc.skip=true -Dmaven.test.skip=true
diff --git a/.github/workflows/k8s-examples-http.yml 
b/.github/workflows/k8s-examples-http.yml
index fa0ff46e99..c3bdd65c94 100644
--- a/.github/workflows/k8s-examples-http.yml
+++ b/.github/workflows/k8s-examples-http.yml
@@ -27,7 +27,7 @@ jobs:
     if: (github.repository == 'apache/shenyu')
     steps:
       -
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
         with:
           submodules: true
       -
@@ -47,17 +47,19 @@ jobs:
       -
         name: Cache Maven Repos
         if: steps.filter.outputs.changed == 'true'
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ~/.m2/repository
           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ runner.os }}-maven-
       -
-        uses: actions/setup-java@v1
+        uses: actions/setup-java@v3
         if: steps.filter.outputs.changed == 'true'
         with:
           java-version: 8
+          distribution: 'temurin'
+          cache: maven
       -
         name: Build with Maven
         if: steps.filter.outputs.changed == 'true'

Reply via email to