Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
[fix][*][*] use workflow to build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxyan committed Nov 20, 2023
1 parent e38d566 commit 256271e
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/install_acbsdk.sh
Original file line number Diff line number Diff line change
@@ -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"
10 changes: 7 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Java CI with Maven

on:
push:
branches: [ "main", "develop", "*_test" ]
branches: [ "main", "develop", "test/**" ]
pull_request:
branches: [ "main", "develop" ]

Expand All @@ -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
12 changes: 12 additions & 0 deletions r-bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@
</nonFilteredFileExtensions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.2.2</version>
</dependency>
</dependencies>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-assembly-plugin</artifactId>-->
Expand Down

0 comments on commit 256271e

Please sign in to comment.