-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update version to 2.7.9-SNAPSHOT (#775)
* Fix wrong sample code : (#761) @service ====> @DubboService @reference ====> @DubboReference Co-authored-by: 李大成 <lidc@fxiaoke.com> * fix README_CN change Registry Zookeeper Samples and Registry Nacos Samples error (#760) * Update README_CN.md (#762) 修改版本号,2.7.7->2.7.8 * Update README.md (#764) update Registry Zookeeper Samples and Registry Nacos Samples URL * Update README.md (#763) Update the version of the project to 2.7.8 . * Update README.md (#765) Wrong annotation ====> Correct annotation @service ====> @DubboService @reference ====> @DubboReference * update version to 2.7.9-SNAPSHOT, fix compile errors * do not install samples modules * update maven version to 3.6.1 * add github actions workflow * fix workflows path Co-authored-by: JackyKyoto <51149572+JackyKyoto@users.noreply.github.com> Co-authored-by: 李大成 <lidc@fxiaoke.com> Co-authored-by: lxl910128 <287876871@qq.com> Co-authored-by: JustDoNow <emailqz@126.com> Co-authored-by: wuudongdong <74701398+wuudongdong@users.noreply.github.com> Co-authored-by: DaisyLJQ <37607839+DaisyLJQ@users.noreply.github.com> Co-authored-by: sharpzhango <1404405160@qq.com>
- Loading branch information
1 parent
ec32800
commit 525f26c
Showing
8 changed files
with
134 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Dubbo 2 | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "**" | ||
- "!**/*.md" | ||
- "!docs/**" | ||
push: | ||
paths: | ||
- '**' | ||
- "!**/*.md" | ||
- "!docs/**" | ||
workflow_dispatch: | ||
|
||
env: | ||
DUBBO_REF: 'master' | ||
|
||
jobs: | ||
build-dubbo: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
# Map a step output to a job output | ||
outputs: | ||
commit_id: ${{ steps.git-checker.outputs.commit_id }} | ||
cache-hit: ${{ steps.dubbocache.outputs.cache-hit }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: 'apache/dubbo' | ||
ref: ${{env.DUBBO_REF}} | ||
- name: Get commit id and dubbo version | ||
id: git-checker | ||
run: | | ||
#compare dubbo commit id | ||
last_commit_id=`git log --format="%H" -n 1` | ||
echo "::set-output name=commit_id::$last_commit_id" | ||
echo "commit_id: $last_commit_id" | ||
# Calculate Dubbo Version | ||
REVISION=`awk '/<revision>[^<]+<\/revision>/{gsub(/<revision>|<\/revision>/,"",$1);print $1;exit;}' pom.xml` | ||
mkdir dubbo-version | ||
echo $REVISION > dubbo-version/dubbo-version | ||
echo "dubbo version: $REVISION" | ||
- name: Upload Dubbo version | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dubbo-version | ||
path: dubbo-version | ||
- name: Dubbo cache | ||
id: dubbocache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository/org/apache/dubbo | ||
key: ${{ runner.os }}-dubbo-snapshot-${{steps.git-checker.outputs.commit_id}} | ||
- name: Cache local Maven repository | ||
if: steps.dubbocache.outputs.cache-hit != 'true' | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-dubbo-${{env.DUBBO_REF}}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-dubbo-${{env.DUBBO_REF}}-maven- | ||
- name: Set up JDK 8 | ||
if: steps.dubbocache.outputs.cache-hit != 'true' | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Build dubbo | ||
if: steps.dubbocache.outputs.cache-hit != 'true' | ||
run: | | ||
./mvnw -U --batch-mode --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3 clean install -Dmaven.test.skip=true -Dmaven.test.skip.exec=true | ||
build-dubbo-spring-boot: | ||
needs: [build-dubbo] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [8, 11] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-dubbo-spring-boot-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-dubbo-spring-boot-maven- | ||
- name: Dubbo cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository/org/apache/dubbo | ||
key: ${{ runner.os }}-dubbo-snapshot-${{needs.build-dubbo.outputs.commit_id}} | ||
- name: Set up JDK ${{matrix.java}} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{matrix.java}} | ||
- name: Build dubbo-spring-boot | ||
run: | | ||
./mvnw -U --batch-mode --no-transfer-progress -Dmaven.wagon.http.retryHandler.count=3 clean package | ||
- name: Codecov | ||
run: bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters