This is an automated email from the ASF dual-hosted git repository.
thunguo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-seata-go-samples.git
The following commit(s) were added to refs/heads/main by this push:
new bef1001 feat: integrate samples with main repo e2e test workflow
(#103)
bef1001 is described below
commit bef1001c40cee1e2def5998e31bd14a4d2bfb357
Author: tachibana22 <[email protected]>
AuthorDate: Thu Jun 25 20:11:37 2026 +0800
feat: integrate samples with main repo e2e test workflow (#103)
---
.github/workflows/integrate.yaml | 73 ++++++++++++++++++++++++++++++++++++++++
tcc/fence/service/service.go | 3 --
2 files changed, 73 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml
new file mode 100644
index 0000000..2a155e1
--- /dev/null
+++ b/.github/workflows/integrate.yaml
@@ -0,0 +1,73 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: "Samples Integration Test"
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: "*"
+
+permissions:
+ contents: read
+
+jobs:
+ integrate-test:
+ name: Integration Test
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: "Set up Go"
+ uses: actions/setup-go@v3
+ with:
+ go-version: 1.20.14
+
+ - name: "Checkout Samples Repo"
+ uses: actions/checkout@v3
+ with:
+ path: incubator-seata-go-samples
+
+ - name: "Checkout Main Seata-Go Repo"
+ uses: actions/checkout@v3
+ with:
+ repository: apache/incubator-seata-go
+ ref: master
+ path: incubator-seata-go
+
+ - name: "Link Repositories via Go Workspace"
+ run: |
+ go work init
+ go work use ./incubator-seata-go
+ go work use ./incubator-seata-go-samples
+ working-directory: ${{ github.workspace }}
+
+ - name: "Cache Dependencies"
+ uses: actions/cache@v3
+ with:
+ path: ~/go/pkg/mod
+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
+ restore-keys: |
+ ${{ runner.os }}-go-
+
+ - name: "Execute Integration Tests"
+ run: |
+ sed -i 's/docker-compose /docker compose /g' start_integrate_test.sh
+
+ chmod +x start_integrate_test.sh
+ chmod +x integrate_test.sh
+ chmod +x dockercompose/docker-health-check.sh
+ ./start_integrate_test.sh
+ working-directory: ${{ github.workspace }}/incubator-seata-go-samples
\ No newline at end of file
diff --git a/tcc/fence/service/service.go b/tcc/fence/service/service.go
index 7fc6237..6ed3d6f 100644
--- a/tcc/fence/service/service.go
+++ b/tcc/fence/service/service.go
@@ -147,9 +147,6 @@ func NewTestTCCServiceBusiness2Proxy() *tcc.TCCServiceProxy
{
if err != nil {
panic(fmt.Errorf("TestTCCServiceBusiness2 get tcc
service proxy error, %v", err.Error()))
}
- if err != nil {
- panic(fmt.Errorf("TestTCCServiceBusiness2 register
resource error, %v", err.Error()))
- }
})
return tccService2
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]