Skip to content

Commit

Permalink
Merge branch 'master' into master-4988
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmking authored Jan 30, 2024
2 parents ccf8b12 + a0db13a commit 09c13f1
Show file tree
Hide file tree
Showing 1,413 changed files with 43,770 additions and 25,834 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Describe your PR here; eg. Fixes #issueNo -->
<!-- Describe your PR here; e.g. Fixes #issueNo -->

<!--
Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request.
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:
os: ubuntu-latest
- java: 17
os: ubuntu-latest
- java: 18
os: ubuntu-latest
- java: 19
os: ubuntu-latest
- java: 20
os: ubuntu-latest
- java: 21
os: ubuntu-latest
runs-on: ${{ matrix.os }}
if: (github.repository == 'apache/shenyu')
steps:
Expand All @@ -54,9 +62,10 @@ jobs:
with:
filters: '.github/filters.yml'
list-files: json
- name: Cache Maven Repos
- name: Restore ShenYu Maven Repos
if: steps.filter.outputs.changed == 'true'
uses: actions/cache@v3
id: restore-maven-cache
uses: actions/cache/restore@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -68,9 +77,15 @@ jobs:
java-version: ${{ matrix.java }}
- name: Build with Maven
if: steps.filter.outputs.changed == 'true'
run: ./mvnw -B clean install -Prelease
run: ./mvnw -B clean test -Prelease
- uses: codecov/codecov-action@v1
if: steps.filter.outputs.changed == 'true'
- name: Save ShenYu Maven Repos
if: steps.filter.outputs.changed == 'true' && steps.restore-maven-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

check-license-header:
name: check-license-header
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
with:
java-version: 8
distribution: 'temurin'
cache: maven

- name: Cache local Maven repository
uses: actions/cache@v3
- name: Restore ShenYu Maven Repos
id: restore-maven-cache
uses: actions/cache/restore@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ jobs:
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Cache Maven Repos
uses: actions/cache@v3
- name: Restore ShenYu Maven Repos
id: restore-maven-cache
uses: actions/cache/restore@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -66,7 +67,6 @@ jobs:
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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ jobs:
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Cache Maven Repos
uses: actions/cache@v3
- name: Restore ShenYu Maven Repos
id: restore-maven-cache
uses: actions/cache/restore@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -70,7 +71,6 @@ jobs:
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
Expand Down
Loading

0 comments on commit 09c13f1

Please sign in to comment.