This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch feature-triple
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/feature-triple by this push:
new 58eb5c34 update workflow
58eb5c34 is described below
commit 58eb5c342f4d1719de8dce33defeba282e036da3
Author: chickenlj <[email protected]>
AuthorDate: Thu Nov 9 10:18:49 2023 +0800
update workflow
---
.github/workflows/github-actions.yml | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/github-actions.yml
b/.github/workflows/github-actions.yml
index a82500cd..33992bea 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -2,7 +2,10 @@ name: CI
on:
push:
- branches: [master, develop]
+ branches:
+ - main
+ - 'release-*'
+ - 'feature-*'
pull_request:
branches: "*"
@@ -12,7 +15,7 @@ jobs:
name: ${{ matrix.os }} - Go ${{ matrix.go_version }}
runs-on: ${{ matrix.os }}
strategy:
- # If you want to matrix build , you can append the following list.
+ # If you want to matrix build, you can append the following list.
matrix:
go_version:
- 1.17
@@ -24,7 +27,6 @@ jobs:
DING_SIGN: ${{ secrets.DING_SIGN }}
steps:
-
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
@@ -67,6 +69,22 @@ jobs:
- name: Check License Header
uses:
apache/skywalking-eyes/header@e1a02359b239bd28de3f6d35fdc870250fa513d5
+ - name: Switch Dubbo-go version
+ run: |
+ # Acquire information of branch
+ if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
+ BRANCH=${{github.base_ref}}
+ elif [ "$GITHUB_EVENT_NAME" == "push" ]; then
+ BRANCH=$GITHUB_REF_NAME
+ else
+ echo "$GITHUB_EVENT_NAME event is unsupported right now"
+ exit 1
+ fi
+ echo "EVENT = $GITHUB_EVENT_NAME, BRANCH = $BRANCH"
+ # Edit the version
+ go mod edit
-replace=dubbo.apache.org/dubbo-go/v3=dubbo.apache.org/dubbo-go/v3@$BRANCH
+ go mod tidy
+
- name: Integration Test
run: |
./start_integrate_test.sh
\ No newline at end of file