Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/build-and-test-pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# codelogic-build-feedback
name: "Build and Test For PR"

on:
push:
branches:
- 3.3
- 3.2
- 'codelogic/**'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -144,8 +146,12 @@ jobs:
- name: "Clean dubbo cache"
run: rm -rf ~/.m2/repository/org/apache/dubbo
- name: "Build Dubbo with maven"
env:
NO_COLOR: "1"
TERM: dumb
run: |
./mvnw ${{ env.MAVEN_ARGS }} clean install -Psources,skip-spotless,checkstyle -Dmaven.test.skip=true -DembeddedZookeeperPath=${{ github.workspace }}/.tmp/zookeeper
set -o pipefail
./mvnw ${{ env.MAVEN_ARGS }} clean install -Psources,skip-spotless,checkstyle -Dmaven.test.skip=true -DembeddedZookeeperPath=${{ github.workspace }}/.tmp/zookeeper 2>&1 | tee ${{ github.workspace }}/build.log
- name: "Save dubbo cache"
uses: actions/cache/save@v4
with:
Expand Down Expand Up @@ -183,6 +189,19 @@ jobs:
REVISION=`awk '/<revision>[^<]+<\/revision>/{gsub(/<revision>|<\/revision>/,"",$1);print $1;exit;}' ./pom.xml`
echo "version=$REVISION" >> $GITHUB_OUTPUT
echo "dubbo version: $REVISION"
- name: "Send CodeLogic Build Info"
if: always()
uses: CodeLogicIncEngineering/codelogic-send-build-info-github-action@v1.0.2
with:
codelogic_host: ${{ vars.CODELOGIC_HOST }}
agent_uuid: ${{ vars.AGENT_UUID }}
agent_password: ${{ secrets.AGENT_PASSWORD }}
scan_path: /github/workspace
job_name: ${{ github.workflow }}
build_number: ${{ github.run_number }}
build_status: ${{ job.status }}
pipeline_system: GitHub Actions
log_file: /github/workspace/build.log

unit-test-prepare:
name: "Preparation for Unit Test"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<spotless.action>check</spotless.action>

<!-- Maven plugins -->
<maven_jar_version>3.5.0</maven_jar_version>
<maven_jar_version>3.5.1</maven_jar_version>
<maven_surefire_version>3.5.6</maven_surefire_version>
<maven_deploy_version>3.1.4</maven_deploy_version>
<maven_shade_version>3.6.2</maven_shade_version>
Expand Down
Loading