-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Kurian Benoy <[email protected]> Co-authored-by: Shibin Thomas <[email protected]> Co-authored-by: nikhila-aot <[email protected]> Co-authored-by: Abil P Raju <[email protected]> Co-authored-by: sumathi-thirumani-aot <[email protected]> Co-authored-by: athira-aot <[email protected]> Co-authored-by: seethalelias-aot <[email protected]> Co-authored-by: Bonymol-aot <[email protected]> Co-authored-by: Bonymol Baby <[email protected]> Co-authored-by: sneha <[email protected]> Co-authored-by: SnehaSuresh-aot <[email protected]> Co-authored-by: shibin-aot <[email protected]> Co-authored-by: unknown <[email protected]> Co-authored-by: Krishnan Subramanian <[email protected]> Co-authored-by: sreehari-aot <[email protected]> Co-authored-by: seethalelias-aot <[email protected]> Co-authored-by: alanraju-aot <[email protected]> Co-authored-by: shuhaib s <[email protected]> Co-authored-by: abilpraju-aot <[email protected]> Co-authored-by: shuhaibzahir <[email protected]> Co-authored-by: Krishnan Subramanian <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sumesh Punakkal Kariyil <[email protected]> Co-authored-by: Abijith Sebastian <[email protected]> Co-authored-by: auslin-aot <[email protected]> Co-authored-by: kurianbenoy-aot <[email protected]> Co-authored-by: Raveena-aot <[email protected]> Co-authored-by: Raveena-aot <[email protected]> Co-authored-by: AbijithS-aot <[email protected]> Co-authored-by: Sneha Suresh <[email protected]> Co-authored-by: DESKTOP-EGTI4MU\DELL <[email protected]> Co-authored-by: auslin-aot <[email protected]> Co-authored-by: shuhaib-aot <[email protected]> Co-authored-by: alanraju-aot <[email protected]> Co-authored-by: Josephalexantony-aot <[email protected]> Co-authored-by: ambadi-aot <[email protected]> Co-authored-by: ambadi <[email protected]>
- Loading branch information
1 parent
6136d51
commit b9ea1de
Showing
478 changed files
with
63,348 additions
and
11,511 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Declare files that will always have CRLF line endings on checkout. | ||
*.sh text eol=lf |
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,127 @@ | ||
name: Forms Flow API CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
paths: | ||
- "forms-flow-api/**" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./forms-flow-api | ||
|
||
jobs: | ||
setup-job: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: "true" | ||
|
||
linting: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements/dev.txt | ||
- name: Pylint | ||
id: pylint | ||
run: | | ||
pylint --rcfile=setup.cfg src/formsflow_api | ||
- name: Flake8 | ||
id: flake8 | ||
run: | | ||
flake8 src/formsflow_api tests | ||
PyTest: | ||
needs: setup-job | ||
env: | ||
FLASK_ENV: "testing" | ||
DATABASE_URL_TEST: "postgresql://postgres:postgres@localhost:5432/postgres" | ||
FORMSFLOW_API_URL: "http://localhost:5000" | ||
KEYCLOAK_URL: ${{ secrets.KEYCLOAK_URL }} | ||
KEYCLOAK_URL_REALM: ${{ secrets.KEYCLOAK_URL_REALM }} | ||
KEYCLOAK_BPM_CLIENT_SECRET: ${{ secrets.KEYCLOAK_BPM_CLIENT_SECRET }} | ||
CAMUNDA_API_URL: ${{ secrets.CAMUNDA_API_URL }} | ||
JWT_OIDC_WELL_KNOWN_CONFIG: ${{ secrets.JWT_OIDC_WELL_KNOWN_CONFIG }} | ||
JWT_OIDC_ALGORITHMS: "RS256" | ||
JWT_OIDC_JWKS_URI: ${{ secrets.JWT_OIDC_JWKS_URI }} | ||
JWT_OIDC_ISSUER: ${{ secrets.JWT_OIDC_ISSUER }} | ||
JWT_OIDC_AUDIENCE: ${{ secrets.JWT_OIDC_AUDIENCE }} | ||
JWT_OIDC_CACHING_ENABLED: "True" | ||
BPM_API_BASE: ${{ secrets.BPM_API_BASE }} | ||
BPM_CLIENT_SECRET: ${{ secrets.BPM_CLIENT_SECRET }} | ||
BPM_CLIENT_ID: ${{ secrets.BPM_CLIENT_ID }} | ||
BPM_TOKEN_API: ${{ secrets.BPM_TOKEN_API }} | ||
TEST_REVIEWER_USERID: ${{ secrets.TEST_REVIEWER_USERID }} | ||
TEST_REVIEWER_PASSWORD: ${{ secrets.TEST_REVIEWER_PASSWORD }} | ||
INSIGHT_API_URL: ${{ secrets.INSIGHT_API_URL }} | ||
INSIGHT_API_KEY: ${{ secrets.INSIGHT_API_KEY }} | ||
SKIP_IN_CI: "True" | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
image: postgres:11 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
ports: | ||
- 5432:5432 | ||
# needed because the postgres container does not provide a healthcheck | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
make build | ||
- name: Test | ||
id: test | ||
run: | | ||
make test | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v1 | ||
# with: | ||
# file: ./forms-flow-api/coverage.xml | ||
# flags: formsflowapi | ||
# name: codecov-formsflow-api | ||
# fail_ci_if_error: true | ||
build: | ||
needs: PyTest | ||
runs-on: ubuntu-20.04 | ||
name: Build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build | ||
run: | | ||
docker build . -t forms-flow-api |
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,63 @@ | ||
#Workflow name | ||
name: Forms Flow BPM CI | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
paths: | ||
- "forms-flow-api/**" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./forms-flow-bpm | ||
|
||
jobs: | ||
setup-job: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: "true" | ||
tests: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
name: Unit tests | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom-docker.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Run Tests | ||
run: mvn -B test --file pom-docker.xml | ||
build: | ||
needs: tests | ||
runs-on: ubuntu-20.04 | ||
name: Build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom-docker.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Build with Maven | ||
run: mvn -B package -DskipTests --file pom-docker.xml |
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,112 @@ | ||
name: Forms Flow Data Analysis API CI | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
paths: | ||
- "forms-flow-data-analysis-api/**" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./forms-flow-data-analysis-api | ||
|
||
jobs: | ||
setup-job: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: "true" | ||
|
||
linting: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements/dev.txt | ||
- name: Pylint | ||
id: pylint | ||
run: | | ||
pylint --rcfile=setup.cfg src/api | ||
PyTest: | ||
needs: setup-job | ||
env: | ||
FLASK_ENV: "testing" | ||
DATABASE_URL_TEST: "postgresql://postgres:postgres@localhost:6432/postgres" | ||
DATA_ANALYSIS_API_BASE_URL: "http://localhost:5001" | ||
KEYCLOAK_URL: ${{ secrets.KEYCLOAK_URL }} | ||
KEYCLOAK_URL_REALM: ${{ secrets.KEYCLOAK_URL_REALM }} | ||
JWT_OIDC_WELL_KNOWN_CONFIG: ${{ secrets.JWT_OIDC_WELL_KNOWN_CONFIG }} | ||
JWT_OIDC_ALGORITHMS: "RS256" | ||
JWT_OIDC_JWKS_URI: ${{ secrets.JWT_OIDC_JWKS_URI }} | ||
JWT_OIDC_ISSUER: ${{ secrets.JWT_OIDC_ISSUER }} | ||
JWT_OIDC_AUDIENCE: ${{ secrets.JWT_OIDC_AUDIENCE }} | ||
JWT_OIDC_CACHING_ENABLED: "True" | ||
BPM_API_BASE: ${{ secrets.BPM_API_BASE }} | ||
BPM_CLIENT_SECRET: ${{ secrets.BPM_CLIENT_SECRET }} | ||
BPM_CLIENT_ID: ${{ secrets.BPM_CLIENT_ID }} | ||
BPM_TOKEN_API: ${{ secrets.BPM_TOKEN_API }} | ||
TEST_REVIEWER_USERID: ${{ secrets.TEST_REVIEWER_USERID }} | ||
TEST_REVIEWER_PASSWORD: ${{ secrets.TEST_REVIEWER_PASSWORD }} | ||
MODEL_ID: ${{ secrets.MODEL_ID }} | ||
SKIP_IN_CI: "True" | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
image: postgres:13 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
ports: | ||
- 6432:5432 | ||
# needed because the postgres container does not provide a healthcheck | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
make setup | ||
- name: Download Sentiment Analysis Model | ||
run: | | ||
make download-models | ||
- name: Test | ||
id: test | ||
run: | | ||
make test | ||
build: | ||
runs-on: ubuntu-20.04 | ||
name: Build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build | ||
run: | | ||
docker build . -t forms-flow-data-analysis-api |
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,80 @@ | ||
name: Forms Flow Web CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
paths: | ||
- "forms-flow-web/**" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./forms-flow-web | ||
|
||
jobs: | ||
setup-job: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: "true" | ||
|
||
linting: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
# - name: Linting | ||
# run: | | ||
# npm run lint | ||
unit-tests: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
- name: Unit Test | ||
id: test | ||
run: | | ||
npm test a | ||
build-check: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build to check strictness | ||
id: build | ||
run: | | ||
docker build . -t forms-flow-web |
Oops, something went wrong.