Skip to content

[WIP] Add data publishing capabilities to WSO2 OB IS Accelerator modules #1390

[WIP] Add data publishing capabilities to WSO2 OB IS Accelerator modules

[WIP] Add data publishing capabilities to WSO2 OB IS Accelerator modules #1390

Workflow file for this run

# Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
#
# WSO2 LLC. 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: Build Financial Services Repository
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request_target:
branches:
- 'main'
jobs:
Build-repo-check:
runs-on: ubuntu-latest
env:
WSO2_USERNAME: ${{ secrets.SOLUTIONS_BOT_EMAIL }}
WSO2_PASSWORD: ${{ secrets.SOLUTIONS_BOT_PASSWORD }}
WSO2_U2_PASSWORD: ${{ secrets.SOLUTIONS_BOT_U2_PASSWORD }}
WSO2_UPDATE_LINUX_DECRYPTION_PASSPHRASE: ${{ secrets.WSO2_UPDATE_LINUX_DECRYPTION_PASSPHRASE }}
STMP_ROOT_PASSWORD: ${{ secrets.SOLUTIONS_BOT_PASSWORD }}
TEST_HOME: /home/runner/work/financial-services/financial-services
steps:
- uses: actions/checkout@v2
- name: Set up Adopt JDK 11
uses: actions/setup-java@v2
with:
java-version: 11.0.25+9
distribution: 'temurin'
- uses: actions/checkout@v3
- name: Set up Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Maven settings.xml
uses: whelk-io/maven-settings-xml-action@v11
with:
mirrors: >
[
{
"id": "wso2-nexus",
"mirrorOf": "wso2-nexus",
"url": "http://maven.wso2.org/nexus/content/groups/wso2-public/"
},
{
"id": "wso2.releases",
"mirrorOf": "wso2.releases",
"url": "http://maven.wso2.org/nexus/content/repositories/releases/"
},
{
"id": "wso2.snapshots",
"mirrorOf": "wso2.snapshots",
"url": "http://maven.wso2.org/nexus/content/repositories/snapshots/"
},
{
"id": "knopflerfish",
"mirrorOf": "knopflerfish",
"url": "http://resources.knopflerfish.org/repo/maven2/release"
}
]
- name: Build with Maven using JDK 11
run: |
export MAVEN_OPTS="-Xmx4g"
mvn -B install --file pom.xml
- name: Set up Adopt JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "adopt"
- name: Build with Maven using JDK 17
run: |
export MAVEN_OPTS="-Xmx4g"
mvn -B install --file pom.xml
- name: Running the integration test suite
run: |
echo "Starting tests..."
export MAVEN_OPTS="-Xmx4g"
RUNNER_HOME=`pwd`
chmod +x $RUNNER_HOME/test-automation/test.sh
chmod +x ${RUNNER_HOME}/test-automation/wso2update_linux.gpg
echo "Decrypting update script..."
gpg --quiet --batch --yes --decrypt --passphrase="$WSO2_UPDATE_LINUX_DECRYPTION_PASSPHRASE" --output ${RUNNER_HOME}/test-automation/wso2update_linux ${RUNNER_HOME}/test-automation/wso2update_linux.gpg
echo "Setting up..."
bash $RUNNER_HOME/test-automation/setup.sh
echo "Running test suite..."
bash $RUNNER_HOME/test-automation/test.sh -i $TEST_HOME