diff --git a/.github/workflows/install_acbsdk.sh b/.github/workflows/install_acbsdk.sh new file mode 100644 index 0000000..be86337 --- /dev/null +++ b/.github/workflows/install_acbsdk.sh @@ -0,0 +1,36 @@ +# +# Copyright 2023 Ant Group +# +# Licensed 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. +# + +#!/bin/bash + +CURR_DIR="$(cd `dirname $0`; pwd)" + +echo "install BID SDK ..." +git clone -b release/1.0.0 https://github.com/caict-4iot-dev/BID-SDK-JAVA.git +cd BID-SDK-JAVA/BID-SDK +mvn install -Dmaven.test.skip=true +cd - +echo "install BID SDK finished" + +echo "install ACB SDK ..." +git clone -b feat/bcdns_support https://github.com/AntChainOpenLabs/AntChainBridgePluginSDK.git +cd AntChainBridgePluginSDK/antchain-bridge-commons +mvn install -Dmaven.test.skip=true +cd - +cd AntChainBridgePluginSDK/antchain-bridge-spi +mvn install -Dmaven.test.skip=true +cd - +echo "install ACB SDK finished" \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 51c0ead..76cfeed 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,7 +10,7 @@ name: Java CI with Maven on: push: - branches: [ "main", "develop", "*_test" ] + branches: [ "main", "develop", "test/**" ] pull_request: branches: [ "main", "develop" ] @@ -27,9 +27,13 @@ jobs: java-version: '8' distribution: 'temurin' cache: maven + - name: Install deps + run: bash .github/workflows/install_acbsdk.sh - name: Build with Maven run: mvn -B package --file pom.xml + - name: Test + run: mvn test --file pom.xml # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - - name: Update dependency graph - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 +# - name: Update dependency graph +# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 diff --git a/r-bootstrap/pom.xml b/r-bootstrap/pom.xml index ba7a5da..2063e63 100644 --- a/r-bootstrap/pom.xml +++ b/r-bootstrap/pom.xml @@ -131,6 +131,18 @@ + + org.apache.maven.plugins + maven-surefire-plugin + 3.2.2 + + + org.apache.maven.surefire + surefire-junit47 + 3.2.2 + + +