forked from apache/fineract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from apache/develop
Version 20221010
- Loading branch information
Showing
3,253 changed files
with
151,123 additions
and
90,021 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# https://issues.apache.org/jira/browse/FINERACT-1453 | ||
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Fineract Docker build - MariaDB | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
cache: gradle | ||
- name: Build the image | ||
run: ./gradlew :fineract-provider:clean :fineract-provider:jibDockerBuild -x test | ||
- name: Start the stack | ||
run: docker-compose up -d | ||
- name: Wait for stack to come up | ||
run: sleep 60 | ||
- name: Check health | ||
run: curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8443/fineract-provider/actuator/health | ||
- name: Check info | ||
run: (( $(curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8443/fineract-provider/actuator/info | wc --chars) > 100 )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Fineract Docker build - PostgreSQL | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
cache: gradle | ||
- name: Build the image | ||
run: ./gradlew :fineract-provider:clean :fineract-provider:jibDockerBuild -x test | ||
- name: Start the stack | ||
run: docker-compose -f docker-compose-postgresql.yml up -d | ||
- name: Wait for stack to come up | ||
run: sleep 60 | ||
- name: Check health | ||
run: curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8443/fineract-provider/actuator/health | ||
- name: Check info | ||
run: (( $(curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8443/fineract-provider/actuator/info | wc --chars) > 100 )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Fineract Documentation build | ||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
cache: gradle | ||
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3 | ||
with: | ||
node-version: 16 | ||
- name: Congfigure vega-cli | ||
run: npm i -g vega-cli --unsafe | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
- name: Install additional software | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ghostscript graphviz -y | ||
- name: Documentation build | ||
run: ./gradlew --no-daemon --console=plain doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Fineract Build & Test - MariaDB | ||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
mariad: | ||
image: mariadb:10.9 | ||
ports: | ||
- 3306:3306 | ||
env: | ||
MARIADB_ROOT_PASSWORD: mysql | ||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 | ||
|
||
mock-oauth2-server: | ||
image: ghcr.io/navikt/mock-oauth2-server:0.5.4 | ||
ports: | ||
- 9000:9000 | ||
env: | ||
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" ] } } ] } ] }' | ||
|
||
env: | ||
TZ: Asia/Kolkata | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
cache: gradle | ||
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3 | ||
with: | ||
node-version: 16 | ||
- name: Congfigure vega-cli | ||
run: npm i -g vega-cli --unsafe | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
- name: Verify MariaDB connection | ||
run: | | ||
while ! mysqladmin ping -h"127.0.0.1" -P3306 ; do | ||
sleep 1 | ||
done | ||
- name: Initialise databases | ||
run: | | ||
./gradlew --no-daemon -q createDB -PdbName=fineract_tenants | ||
./gradlew --no-daemon -q createDB -PdbName=fineract_default | ||
- name: Install additional software | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ghostscript graphviz -y | ||
- name: Build & Test | ||
run: | | ||
./gradlew --no-daemon --console=plain build test --fail-fast -x doc -x :twofactor-tests:test -x :oauth2-test:test | ||
./gradlew --no-daemon --console=plain :twofactor-tests:test --fail-fast | ||
./gradlew --no-daemon --console=plain :oauth2-tests:test --fail-fast | ||
- name: Archive test results | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3 | ||
with: | ||
name: test-results | ||
path: | | ||
integration-tests/build/reports/ | ||
twofactor-tests/build/reports/ | ||
oauth2-tests/build/reports/ | ||
- name: Archive server logs | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3 | ||
with: | ||
name: server-logs | ||
path: | | ||
integration-tests/build/cargo/ | ||
twofactor-tests/build/cargo/ | ||
oauth2-tests/build/cargo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Fineract Build & Test - MySQL | ||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
mariad: | ||
image: mysql:8.0 | ||
ports: | ||
- 3306:3306 | ||
env: | ||
MYSQL_ROOT_PASSWORD: mysql | ||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 | ||
|
||
mock-oauth2-server: | ||
image: ghcr.io/navikt/mock-oauth2-server:0.5.4 | ||
ports: | ||
- 9000:9000 | ||
env: | ||
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" ] } } ] } ] }' | ||
|
||
env: | ||
TZ: Asia/Kolkata | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
cache: gradle | ||
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3 | ||
with: | ||
node-version: 16 | ||
- name: Congfigure vega-cli | ||
run: npm i -g vega-cli --unsafe | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
- name: Verify MariaDB connection | ||
run: | | ||
while ! mysqladmin ping -h"127.0.0.1" -P3306 ; do | ||
sleep 1 | ||
done | ||
- name: Initialise databases | ||
run: | | ||
./gradlew --no-daemon -q createMySQLDB -PdbName=fineract_tenants | ||
./gradlew --no-daemon -q createMySQLDB -PdbName=fineract_default | ||
- name: Install additional software | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ghostscript graphviz -y | ||
- name: Build & Test | ||
run: | | ||
./gradlew --no-daemon --console=plain build test --fail-fast -x doc -x :twofactor-tests:test -x :oauth2-test:test -PdbType=mysql | ||
./gradlew --no-daemon --console=plain :twofactor-tests:test --fail-fast -PdbType=mysql | ||
./gradlew --no-daemon --console=plain :oauth2-tests:test --fail-fast -PdbType=mysql | ||
- name: Archive test results | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3 | ||
with: | ||
name: test-results | ||
path: | | ||
integration-tests/build/reports/ | ||
twofactor-tests/build/reports/ | ||
oauth2-tests/build/reports/ | ||
- name: Archive server logs | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3 | ||
with: | ||
name: server-logs | ||
path: | | ||
integration-tests/build/cargo/ | ||
twofactor-tests/build/cargo/ | ||
oauth2-tests/build/cargo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Fineract Build & Test - PostgreSQL | ||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgresql: | ||
image: postgres:13.8 | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_USER: root | ||
POSTGRES_PASSWORD: postgres | ||
options: --health-cmd="pg_isready -q -d postgres -U root" --health-interval=5s --health-timeout=2s --health-retries=3 | ||
|
||
mock-oauth2-server: | ||
image: ghcr.io/navikt/mock-oauth2-server:0.5.4 | ||
ports: | ||
- 9000:9000 | ||
env: | ||
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" ] } } ] } ] }' | ||
|
||
env: | ||
TZ: Asia/Kolkata | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'zulu' | ||
cache: gradle | ||
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3 | ||
with: | ||
node-version: 16 | ||
- name: Congfigure vega-cli | ||
run: npm i -g vega-cli --unsafe | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | ||
- name: Verify PostgreSQL connection | ||
run: | | ||
while ! pg_isready -d postgres -U root -h 127.0.0.1 -p 5432 ; do | ||
sleep 1 | ||
done | ||
- name: Initialise databases | ||
run: | | ||
./gradlew --no-daemon -q createPGDB -PdbName=fineract_tenants | ||
./gradlew --no-daemon -q createPGDB -PdbName=fineract_default | ||
- name: Install additional software | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ghostscript graphviz -y | ||
- name: Build & Test | ||
run: | | ||
./gradlew --no-daemon --console=plain build test --fail-fast -x doc -x :twofactor-tests:test -x :oauth2-test:test -PdbType=postgresql | ||
./gradlew --no-daemon --console=plain :twofactor-tests:test --fail-fast -PdbType=postgresql | ||
./gradlew --no-daemon --console=plain :oauth2-tests:test --fail-fast -PdbType=postgresql | ||
- name: Archive test results | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3 | ||
with: | ||
name: test-results | ||
path: | | ||
integration-tests/build/reports/ | ||
twofactor-tests/build/reports/ | ||
oauth2-tests/build/reports/ | ||
- name: Archive server logs | ||
if: always() | ||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3 | ||
with: | ||
name: server-logs | ||
path: | | ||
integration-tests/build/cargo/ | ||
twofactor-tests/build/cargo/ | ||
oauth2-tests/build/cargo/ |
Oops, something went wrong.