FINERACT-2081: Github Actions workflow cleanup
This commit is contained in:
@@ -1,16 +1,12 @@
|
|||||||
name: Fineract Docker build - MariaDB
|
name: Fineract Docker build - MariaDB
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
with:
|
with:
|
||||||
@@ -23,9 +19,9 @@ jobs:
|
|||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
- name: Build the image
|
- name: Build the image
|
||||||
run: ./gradlew --no-daemon --console=plain :fineract-provider:clean :fineract-provider:build :fineract-provider:jibDockerBuild -x test -x cucumber
|
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -x test -x cucumber
|
||||||
- name: Start the stack
|
- name: Start the stack
|
||||||
run: docker compose up -d
|
run: docker compose -f docker-compose.yml up -d
|
||||||
- name: Check the stack
|
- name: Check the stack
|
||||||
run: docker ps
|
run: docker ps
|
||||||
- name: Check health
|
- name: Check health
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
name: Fineract Docker build - PostgreSQL
|
name: Fineract Docker build - PostgreSQL
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
with:
|
with:
|
||||||
@@ -23,7 +19,7 @@ jobs:
|
|||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
- name: Build the image
|
- name: Build the image
|
||||||
run: ./gradlew --no-daemon --console=plain :fineract-provider:clean :fineract-provider:build :fineract-provider:jibDockerBuild -x test -x cucumber
|
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -x test -x cucumber
|
||||||
- name: Start the Standalone Stack
|
- name: Start the Standalone Stack
|
||||||
run: docker compose -f docker-compose-postgresql.yml up -d
|
run: docker compose -f docker-compose-postgresql.yml up -d
|
||||||
- name: Check the stack
|
- name: Check the stack
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
name: Fineract Documentation build
|
name: Fineract Documentation build
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
@@ -32,6 +30,5 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ghostscript graphviz -y
|
sudo apt-get install ghostscript graphviz -y
|
||||||
|
|
||||||
- name: Documentation build
|
- name: Documentation build
|
||||||
run: ./gradlew --no-daemon --console=plain doc
|
run: ./gradlew --no-daemon --console=plain doc
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
name: Fineract Build Progressive Loan Embeddable Jar & Test with a Sample Application
|
name: Fineract Build Progressive Loan Embeddable Jar & Test with a Sample Application
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
@@ -35,14 +31,12 @@ jobs:
|
|||||||
javac -cp $EMBEDDABLE_JAR_FILE -d sample-app fineract-progressive-loan-embeddable-schedule-generator/misc/Main.java
|
javac -cp $EMBEDDABLE_JAR_FILE -d sample-app fineract-progressive-loan-embeddable-schedule-generator/misc/Main.java
|
||||||
env:
|
env:
|
||||||
EMBEDDABLE_JAR_FILE: ${{ env.EMBEDDABLE_JAR_FILE }}
|
EMBEDDABLE_JAR_FILE: ${{ env.EMBEDDABLE_JAR_FILE }}
|
||||||
|
|
||||||
- name: Run Schedule Generator Sample Application
|
- name: Run Schedule Generator Sample Application
|
||||||
run: |
|
run: |
|
||||||
java -cp $EMBEDDABLE_JAR_FILE:sample-app Main
|
java -cp $EMBEDDABLE_JAR_FILE:sample-app Main
|
||||||
java -cp $EMBEDDABLE_JAR_FILE:sample-app Main 25
|
java -cp $EMBEDDABLE_JAR_FILE:sample-app Main 25
|
||||||
env:
|
env:
|
||||||
EMBEDDABLE_JAR_FILE: ${{ env.EMBEDDABLE_JAR_FILE }}
|
EMBEDDABLE_JAR_FILE: ${{ env.EMBEDDABLE_JAR_FILE }}
|
||||||
|
|
||||||
- name: Archive test results
|
- name: Archive test results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
name: Fineract Build & Test - MariaDB
|
name: Fineract Build & Test - MariaDB
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mariad:
|
mariad:
|
||||||
image: mariadb:11.5
|
image: mariadb:11.5
|
||||||
@@ -16,7 +13,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MARIADB_ROOT_PASSWORD: mysql
|
MARIADB_ROOT_PASSWORD: mysql
|
||||||
options: --health-cmd="healthcheck.sh --su-mysql --connect --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3
|
options: --health-cmd="healthcheck.sh --su-mysql --connect --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||||
|
|
||||||
mock-oauth2-server:
|
mock-oauth2-server:
|
||||||
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
|
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
|
||||||
ports:
|
ports:
|
||||||
@@ -24,7 +20,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SERVER_PORT: 9000
|
SERVER_PORT: 9000
|
||||||
JSON_CONFIG: '{ "interactiveLogin": true, "httpServer": "NettyWrapper", "tokenCallbacks": [ { "issuerId": "auth/realms/fineract", "tokenExpiry": 120, "requestMappings": [{ "requestParam": "scope", "match": "fineract", "claims": { "sub": "mifos", "scope": [ "test" ] } } ] } ] }'
|
JSON_CONFIG: '{ "interactiveLogin": true, "httpServer": "NettyWrapper", "tokenCallbacks": [ { "issuerId": "auth/realms/fineract", "tokenExpiry": 120, "requestMappings": [{ "requestParam": "scope", "match": "fineract", "claims": { "sub": "mifos", "scope": [ "test" ] } } ] } ] }'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: Asia/Kolkata
|
TZ: Asia/Kolkata
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
@@ -38,11 +33,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- name: Congfigure vega-cli
|
|
||||||
run: npm i -g vega-cli --unsafe
|
|
||||||
- name: Setup Gradle and Validate Wrapper
|
- name: Setup Gradle and Validate Wrapper
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
with:
|
with:
|
||||||
@@ -67,11 +57,6 @@ jobs:
|
|||||||
sleep 10
|
sleep 10
|
||||||
docker exec localstack awslocal s3api create-bucket --bucket fineract-reports
|
docker exec localstack awslocal s3api create-bucket --bucket fineract-reports
|
||||||
echo "LocalStack initialization complete"
|
echo "LocalStack initialization complete"
|
||||||
- name: Install additional software
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install ghostscript graphviz -y
|
|
||||||
|
|
||||||
- name: Build & Test
|
- name: Build & Test
|
||||||
env:
|
env:
|
||||||
AWS_ENDPOINT_URL: http://localhost:4566
|
AWS_ENDPOINT_URL: http://localhost:4566
|
||||||
@@ -86,7 +71,6 @@ jobs:
|
|||||||
./gradlew --no-daemon --console=plain test -x :twofactor-tests:test -x :oauth2-test:test -x :fineract-e2e-tests-runner:test
|
./gradlew --no-daemon --console=plain test -x :twofactor-tests:test -x :oauth2-test:test -x :fineract-e2e-tests-runner:test
|
||||||
./gradlew --no-daemon --console=plain :twofactor-tests:test
|
./gradlew --no-daemon --console=plain :twofactor-tests:test
|
||||||
./gradlew --no-daemon --console=plain :oauth2-tests:test
|
./gradlew --no-daemon --console=plain :oauth2-tests:test
|
||||||
|
|
||||||
- name: Archive test results
|
- name: Archive test results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
||||||
@@ -97,7 +81,6 @@ jobs:
|
|||||||
integration-tests/build/reports/
|
integration-tests/build/reports/
|
||||||
twofactor-tests/build/reports/
|
twofactor-tests/build/reports/
|
||||||
oauth2-tests/build/reports/
|
oauth2-tests/build/reports/
|
||||||
|
|
||||||
- name: Archive server logs
|
- name: Archive server logs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
name: Fineract Build & Test - MySQL
|
name: Fineract Build & Test - MySQL
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mariad:
|
mariad:
|
||||||
image: mysql:9.1
|
image: mysql:9.1
|
||||||
@@ -16,7 +13,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MYSQL_ROOT_PASSWORD: mysql
|
MYSQL_ROOT_PASSWORD: mysql
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||||
|
|
||||||
mock-oauth2-server:
|
mock-oauth2-server:
|
||||||
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
|
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
|
||||||
ports:
|
ports:
|
||||||
@@ -24,7 +20,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SERVER_PORT: 9000
|
SERVER_PORT: 9000
|
||||||
JSON_CONFIG: '{ "interactiveLogin": true, "httpServer": "NettyWrapper", "tokenCallbacks": [ { "issuerId": "auth/realms/fineract", "tokenExpiry": 120, "requestMappings": [{ "requestParam": "scope", "match": "fineract", "claims": { "sub": "mifos", "scope": [ "test" ] } } ] } ] }'
|
JSON_CONFIG: '{ "interactiveLogin": true, "httpServer": "NettyWrapper", "tokenCallbacks": [ { "issuerId": "auth/realms/fineract", "tokenExpiry": 120, "requestMappings": [{ "requestParam": "scope", "match": "fineract", "claims": { "sub": "mifos", "scope": [ "test" ] } } ] } ] }'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: Asia/Kolkata
|
TZ: Asia/Kolkata
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
@@ -38,11 +33,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- name: Congfigure vega-cli
|
|
||||||
run: npm i -g vega-cli --unsafe
|
|
||||||
- name: Setup Gradle and Validate Wrapper
|
- name: Setup Gradle and Validate Wrapper
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
with:
|
with:
|
||||||
@@ -67,11 +57,6 @@ jobs:
|
|||||||
sleep 10
|
sleep 10
|
||||||
docker exec localstack awslocal s3api create-bucket --bucket fineract-reports
|
docker exec localstack awslocal s3api create-bucket --bucket fineract-reports
|
||||||
echo "LocalStack initialization complete"
|
echo "LocalStack initialization complete"
|
||||||
- name: Install additional software
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install ghostscript graphviz -y
|
|
||||||
|
|
||||||
- name: Build & Test
|
- name: Build & Test
|
||||||
env:
|
env:
|
||||||
AWS_ENDPOINT_URL: http://localhost:4566
|
AWS_ENDPOINT_URL: http://localhost:4566
|
||||||
@@ -86,7 +71,6 @@ jobs:
|
|||||||
./gradlew --no-daemon --console=plain test -x :twofactor-tests:test -x :oauth2-test:test :fineract-e2e-tests-runner:test -PdbType=mysql
|
./gradlew --no-daemon --console=plain test -x :twofactor-tests:test -x :oauth2-test:test :fineract-e2e-tests-runner:test -PdbType=mysql
|
||||||
./gradlew --no-daemon --console=plain :twofactor-tests:test -PdbType=mysql
|
./gradlew --no-daemon --console=plain :twofactor-tests:test -PdbType=mysql
|
||||||
./gradlew --no-daemon --console=plain :oauth2-tests:test -PdbType=mysql
|
./gradlew --no-daemon --console=plain :oauth2-tests:test -PdbType=mysql
|
||||||
|
|
||||||
- name: Archive test results
|
- name: Archive test results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
||||||
@@ -97,7 +81,6 @@ jobs:
|
|||||||
integration-tests/build/reports/
|
integration-tests/build/reports/
|
||||||
twofactor-tests/build/reports/
|
twofactor-tests/build/reports/
|
||||||
oauth2-tests/build/reports/
|
oauth2-tests/build/reports/
|
||||||
|
|
||||||
- name: Archive server logs
|
- name: Archive server logs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
name: Fineract Build & Test - PostgreSQL
|
name: Fineract Build & Test - PostgreSQL
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgresql:
|
postgresql:
|
||||||
image: postgres:17.2
|
image: postgres:17.2
|
||||||
@@ -17,7 +14,6 @@ jobs:
|
|||||||
POSTGRES_USER: root
|
POSTGRES_USER: root
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
options: --health-cmd="pg_isready -q -d postgres -U root" --health-interval=5s --health-timeout=2s --health-retries=3
|
options: --health-cmd="pg_isready -q -d postgres -U root" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||||
|
|
||||||
mock-oauth2-server:
|
mock-oauth2-server:
|
||||||
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
|
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
|
||||||
ports:
|
ports:
|
||||||
@@ -25,7 +21,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SERVER_PORT: 9000
|
SERVER_PORT: 9000
|
||||||
JSON_CONFIG: '{ "interactiveLogin": true, "httpServer": "NettyWrapper", "tokenCallbacks": [ { "issuerId": "auth/realms/fineract", "tokenExpiry": 120, "requestMappings": [{ "requestParam": "scope", "match": "fineract", "claims": { "sub": "mifos", "scope": [ "test" ] } } ] } ] }'
|
JSON_CONFIG: '{ "interactiveLogin": true, "httpServer": "NettyWrapper", "tokenCallbacks": [ { "issuerId": "auth/realms/fineract", "tokenExpiry": 120, "requestMappings": [{ "requestParam": "scope", "match": "fineract", "claims": { "sub": "mifos", "scope": [ "test" ] } } ] } ] }'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TZ: Asia/Kolkata
|
TZ: Asia/Kolkata
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
@@ -39,11 +34,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- name: Congfigure vega-cli
|
|
||||||
run: npm i -g vega-cli --unsafe
|
|
||||||
- name: Setup Gradle and Validate Wrapper
|
- name: Setup Gradle and Validate Wrapper
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
with:
|
with:
|
||||||
@@ -68,11 +58,6 @@ jobs:
|
|||||||
sleep 10
|
sleep 10
|
||||||
docker exec localstack awslocal s3api create-bucket --bucket fineract-reports
|
docker exec localstack awslocal s3api create-bucket --bucket fineract-reports
|
||||||
echo "LocalStack initialization complete"
|
echo "LocalStack initialization complete"
|
||||||
- name: Install additional software
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install ghostscript graphviz -y
|
|
||||||
|
|
||||||
- name: Build & Test
|
- name: Build & Test
|
||||||
env:
|
env:
|
||||||
AWS_ENDPOINT_URL: http://localhost:4566
|
AWS_ENDPOINT_URL: http://localhost:4566
|
||||||
@@ -87,7 +72,6 @@ jobs:
|
|||||||
./gradlew --no-daemon --console=plain test -x :twofactor-tests:test -x :oauth2-test:test :fineract-e2e-tests-runner:test -PdbType=postgresql
|
./gradlew --no-daemon --console=plain test -x :twofactor-tests:test -x :oauth2-test:test :fineract-e2e-tests-runner:test -PdbType=postgresql
|
||||||
./gradlew --no-daemon --console=plain :twofactor-tests:test -PdbType=postgresql
|
./gradlew --no-daemon --console=plain :twofactor-tests:test -PdbType=postgresql
|
||||||
./gradlew --no-daemon --console=plain :oauth2-tests:test -PdbType=postgresql
|
./gradlew --no-daemon --console=plain :oauth2-tests:test -PdbType=postgresql
|
||||||
|
|
||||||
- name: Archive test results
|
- name: Archive test results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
||||||
@@ -98,7 +82,6 @@ jobs:
|
|||||||
integration-tests/build/reports/
|
integration-tests/build/reports/
|
||||||
twofactor-tests/build/reports/
|
twofactor-tests/build/reports/
|
||||||
oauth2-tests/build/reports/
|
oauth2-tests/build/reports/
|
||||||
|
|
||||||
- name: Archive server logs
|
- name: Archive server logs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
name: Fineract Tests
|
name: Fineract Tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
with:
|
with:
|
||||||
@@ -23,7 +19,7 @@ jobs:
|
|||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
- name: Build the image
|
- name: Build the image
|
||||||
run: ./gradlew --no-daemon --console=plain :fineract-provider:clean :fineract-provider:build :fineract-provider:jibDockerBuild -x test -x cucumber -x :integration-tests:test
|
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -x test -x cucumber
|
||||||
- name: Start the Fineract stack
|
- name: Start the Fineract stack
|
||||||
run: docker compose -f docker-compose-postgresql-test-activemq.yml up -d
|
run: docker compose -f docker-compose-postgresql-test-activemq.yml up -d
|
||||||
- name: Check the stack
|
- name: Check the stack
|
||||||
@@ -41,4 +37,4 @@ jobs:
|
|||||||
EVENT_VERIFICATION_ENABLED: true
|
EVENT_VERIFICATION_ENABLED: true
|
||||||
ACTIVEMQ_BROKER_URL: tcp://localhost:61616
|
ACTIVEMQ_BROKER_URL: tcp://localhost:61616
|
||||||
ACTIVEMQ_TOPIC_NAME: events
|
ACTIVEMQ_TOPIC_NAME: events
|
||||||
run: ./gradlew --no-daemon --console=plain -x test -x :integration-tests:test fineract-e2e-tests-runner:cucumber --tags 'not @Skip' allureReport
|
run: ./gradlew --no-daemon --console=plain :fineract-e2e-tests-runner:cucumber --tags 'not @Skip' allureReport
|
||||||
|
|||||||
@@ -1,21 +1,17 @@
|
|||||||
name: Fineract Publish to DockerHub
|
name: Fineract Publish to DockerHub
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
tags:
|
tags:
|
||||||
- 1.*
|
- 1.*
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Source Code
|
- name: Checkout Source Code
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
name: Fineract ActiveMQ Smoke
|
name: Fineract ActiveMQ Smoke
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
with:
|
with:
|
||||||
@@ -23,7 +19,7 @@ jobs:
|
|||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
- name: Build the image
|
- name: Build the image
|
||||||
run: ./gradlew --no-daemon --console=plain :fineract-provider:clean :fineract-provider:build :fineract-provider:jibDockerBuild -x test -x cucumber
|
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -x test -x cucumber
|
||||||
- name: Start the ActiveMQ Stack
|
- name: Start the ActiveMQ Stack
|
||||||
run: docker compose -f docker-compose-postgresql-activemq.yml up --scale fineract-worker=1 -d
|
run: docker compose -f docker-compose-postgresql-activemq.yml up --scale fineract-worker=1 -d
|
||||||
- name: Check the stack
|
- name: Check the stack
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
name: Fineract Kafka Smoke
|
name: Fineract Kafka Smoke
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
with:
|
with:
|
||||||
@@ -23,7 +19,7 @@ jobs:
|
|||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0
|
||||||
- name: Build the image
|
- name: Build the image
|
||||||
run: ./gradlew --no-daemon --console=plain :fineract-provider:clean :fineract-provider:build :fineract-provider:jibDockerBuild -x test -x cucumber
|
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -x test -x cucumber
|
||||||
- name: Start the Kafka Stack
|
- name: Start the Kafka Stack
|
||||||
run: docker compose -f docker-compose-postgresql-kafka.yml up --scale fineract-worker=1 -d
|
run: docker compose -f docker-compose-postgresql-kafka.yml up --scale fineract-worker=1 -d
|
||||||
- name: Check the stack
|
- name: Check the stack
|
||||||
|
|||||||
@@ -3,10 +3,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ on:
|
|||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
Reference in New Issue
Block a user