This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new ad4644f517b update example action job cache key (#22157)
ad4644f517b is described below
commit ad4644f517b1bebaa61b192404f9cfdf28076620
Author: Guocheng Tang <[email protected]>
AuthorDate: Tue Nov 15 13:17:23 2022 +0800
update example action job cache key (#22157)
* Remove the mixed examples and use the automatically generated examples.
* Revert #22071
* update job cache key
---
.github/workflows/nightly-it-example-generator.yml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/nightly-it-example-generator.yml
b/.github/workflows/nightly-it-example-generator.yml
index fe8756147b4..699f955c3bb 100644
--- a/.github/workflows/nightly-it-example-generator.yml
+++ b/.github/workflows/nightly-it-example-generator.yml
@@ -39,9 +39,8 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: shardingsphere-maven-third-party-cache-${{ github.sha }}
+ key: shardingsphere-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- shardingsphere-maven-third-party-cache-
shardingsphere-maven-third-party-
- name: Build with Maven
run: ./mvnw -B -T1C -ntp clean install -DskipITs -DskipTests
@@ -81,14 +80,15 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: shardingsphere-maven-third-party-cache-${{ github.sha }}
+ key: shardingsphere-maven-third-party-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- shardingsphere-maven-third-party-cache-
shardingsphere-maven-third-party-
- name: Maven resolve ranges
run: ./mvnw versions:resolve-ranges -ntp
-Dincludes='org.springframework:*,org.springframework.boot:*'
- name: Prepare environments
run: sh .github/workflows/resources/sql/nightly-generator-init.sh
+ - name: Build with Maven
+ run: ./mvnw -B -T1C -ntp clean install -DskipITs -DskipTests
- name: Generate examples
run: ./mvnw -B clean install -f
examples/shardingsphere-example-generator/pom.xml -Pexample-generator
-Dproducts=${{ matrix.product }} -Dmodes=${{ matrix.mode }} -Dtransactions=${{
matrix.transaction }} -Dfeatures=${{ matrix.feature }} -Dframeworks=${{
matrix.framework }}
- name: Test examples